forked from abs-tudelft/fletcher
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (22 loc) · 745 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (22 loc) · 745 Bytes
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
cmake_minimum_required(VERSION 3.14.0 FATAL_ERROR)
project(fletcher)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
option(FLETCHER_BUILD_FLETCHGEN "Build fletchgen" 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_FLETCHGEN)
add_subdirectory(codegen/cpp/fletchgen)
endif()
if(FLETCHER_BUILD_ECHO)
add_subdirectory(platforms/echo/runtime)
endif()
if(FLETCHER_BUILD_RUNTIME)
add_subdirectory(runtime/cpp)
endif()