-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (42 loc) · 1.64 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
46
47
48
49
50
51
52
53
54
55
56
57
# declare cmake version
cmake_minimum_required (VERSION 3.15)
# set main project infomation
project (lcs VERSION 0.0.1 LANGUAGES CXX)
# add module search path
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/tools/cmake)
# import utilities
include(utilities)
# set global cxx standard as C++14
set_global_cxx_standard(14)
# set global windows export all symbols
set_global_windows_export_all_symbols()
# set global build output name same as install
set_global_build_output_name_same_as_install()
# set global rpath
set_global_rpath()
# set global option
set_option()
# set global coverage flags
# set_global_coverage_flags()
# set global tools
include_directories(${CMAKE_SOURCE_DIR}/tools)
#----------------------------------------------------------------------------
# Find googletest
#----------------------------------------------------------------------------
find_googletest()
#----------------------------------------------------------------------------
# Find OpenMP
#----------------------------------------------------------------------------
find_package(OpenMP)
#----------------------------------------------------------------------------
# add source
#----------------------------------------------------------------------------
add_subdirectory(src)
#----------------------------------------------------------------------------
# add tests
#----------------------------------------------------------------------------
add_subdirectory(tests)
#----------------------------------------------------------------------------
# Build examples
#----------------------------------------------------------------------------
add_subdirectory(examples)