corda/sgx-jvm/avian/CMakeLists.txt
Andras Slemmer 9bb3d6b972 Add 'sgx-jvm/avian/' from commit '09e4fe60d01f4f4bfb6b2976973bb4913ef61edc'
git-subtree-dir: sgx-jvm/avian
git-subtree-mainline: f978eab8d1
git-subtree-split: 09e4fe60d0
2017-03-13 12:18:24 +00:00

30 lines
685 B
CMake

# NOTE that this CMake file doesn't current build all of avian.
# It only builds what's required for example/kaleidoscope.
cmake_minimum_required (VERSION 2.6)
project (avian)
include_directories (include src)
add_definitions (
-DAVIAN_TARGET_FORMAT=AVIAN_FORMAT_MACHO
-DAVIAN_TARGET_ARCH=AVIAN_ARCH_X86_64
-DTARGET_BYTES_PER_WORD=8
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
)
include ("cmake/Platform.cmake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CXX_FLAGS}")
include (CTest)
# Sadly, we can't use the 'test' target, as that's coopted by ctest
add_custom_target(check ${CMAKE_CTEST_COMMAND} -V)
add_subdirectory (src)
add_subdirectory (unittest)