forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (33 loc) · 925 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
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.12)
## Project name
project(RtLoader)
## Require C++11 with no extensions
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(WIN32)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwin32")
endif()
if(ARCH_I386)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
endif()
## Config options
option(DISABLE_PYTHON2 "Do not build Python2 support")
option(DISABLE_PYTHON3 "Do not build Python3 support")
option(BUILD_DEMO "Build the demo app" ON)
## Add Build Targets
if (NOT DISABLE_PYTHON2)
add_subdirectory(two)
endif()
if (NOT DISABLE_PYTHON3)
add_subdirectory(three)
endif()
add_subdirectory(rtloader)
add_subdirectory(test)
if (BUILD_DEMO)
add_subdirectory(demo)
endif()
## Dev tools
include(cmake/clang-format.cmake)