mirror of
https://github.com/corda/corda.git
synced 2024-12-29 01:08:57 +00:00
9bb3d6b972
git-subtree-dir: sgx-jvm/avian git-subtree-mainline:f978eab8d1
git-subtree-split:09e4fe60d0
30 lines
685 B
CMake
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)
|