-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (22 loc) · 803 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (22 loc) · 803 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.20)
project(SLMaster)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} /O2 /Zi")
add_subdirectory(src)
option(BUILD_GUI "build the gui." ON)
if(BUILD_GUI)
add_subdirectory(gui)
message(NOTICE "[SLMaster]: build gui...")
endif()
option(BUILD_TEST "build the test case with google_test." ON)
if(BUILD_TEST)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test)
message(NOTICE "[SLMaster]: build test case...")
endif()
option(BUILD_PERF "build the perfermance case with google benchmark." ON)
if(BUILD_TEST)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/perf)
message(NOTICE "[SLMaster]: build perfermance case...")
endif()