forked from ReadyTalk/avian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (19 loc) · 685 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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)