-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
38 lines (30 loc) · 992 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
cmake_minimum_required(VERSION 3.12)
project(rocket-bundle)
set(CMAKE_CXX_STANDARD 17)
set(JSON_BuildTests OFF CACHE INTERNAL "")
option(JETPACK_BUILD_CLI "Build CLI tool" ON)
option(JETPACK_BUILD_WASM "Build WASM tool" ON)
option(JETPACK_BUILD_TESTS "Build jetpack tests" ON)
IF (CMAKE_BUILD_TYPE STREQUAL Debug)
message("Debug mode")
add_definitions(-D_DEBUG)
ELSE()
message("Release mode")
add_definitions(-D_RELEASE)
ENDIF()
include_directories(./third_party/robin-hood-hashing/src/include)
add_subdirectory(./third_party/nlohmann_json)
add_subdirectory(./third_party/ordered-map)
add_subdirectory(./third_party/fmt)
if(JETPACK_BUILD_TESTS)
add_subdirectory(./third_party/googletest)
endif()
option(BUILD_SHARED_LIBS "Build shared libs" OFF)
add_subdirectory(./third_party/xxHash/cmake_unofficial)
add_subdirectory(./jetpack)
if(JETPACK_BUILD_CLI)
add_subdirectory(./jetpack-cli)
endif()
if(JETPACK_BUILD_WASM)
add_subdirectory(./jetpack-wasm)
endif()