forked from abs-tudelft/fletcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (33 loc) · 1.04 KB
/
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
41
42
43
44
45
cmake_minimum_required(VERSION 3.14.0 FATAL_ERROR)
project(fletcher)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
option(FLETCHER_BUILD_CERATA "Build cerata library" OFF)
option(FLETCHER_BUILD_FLETCHGEN "Build fletchgen" OFF)
option(FLETCHER_BUILD_COMMON "Build common library" OFF)
option(FLETCHER_BUILD_ECHO "Build echo platform library" OFF)
option(FLETCHER_BUILD_RUNTIME "Build runtime library" ON)
include(FetchContent)
FetchContent_Declare(cmake-modules
GIT_REPOSITORY https://github.com/abs-tudelft/cmake-modules.git
GIT_TAG master
)
FetchContent_MakeAvailable(cmake-modules)
include(CompileUnits)
if(FLETCHER_BUILD_CERATA)
add_subdirectory(codegen/cpp/cerata)
endif()
if(FLETCHER_BUILD_FLETCHGEN)
add_subdirectory(codegen/cpp/fletchgen)
endif()
if(FLETCHER_BUILD_C)
add_subdirectory(common/c)
endif()
if(FLETCHER_BUILD_COMMON)
add_subdirectory(common/cpp)
endif()
if(FLETCHER_BUILD_ECHO)
add_subdirectory(platforms/echo/runtime)
endif()
if(FLETCHER_BUILD_RUNTIME)
add_subdirectory(runtime/cpp)
endif()