-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (27 loc) · 1.12 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
cmake_minimum_required(VERSION 3.7)
project(nse)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
# specifi compiler options
if (MSVC)
add_compile_options(/wd4710 /std:c++latest /we4309)
else()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z" )
endif()
# include nk libraries
include_directories(include ../../nk/nds/include)
include_directories(include ../../nk/ndb/include)
file(GLOB_RECURSE SOURCE_LIST "source/*.cpp" "include/*.hpp")
# test
add_executable(test_main "test/main.cpp")
add_executable(test_ads "test/main_ads.cpp")
add_executable(test_table "test/table.cpp")
set_target_properties(test_table PROPERTIES RUNTIME_OUTPUT_DIRECTORY "../test/table")
# bench
include_directories(extlib/benchmark/include)
#add_executable(bench_sql_nse test/bench.cpp test/sqlite/sqlite3.c)
#target_link_libraries(bench_sql_nse "../extlib/benchmark/lib/benchmark" shlwapi)
#set_target_properties(bench_sql_nse PROPERTIES RUNTIME_OUTPUT_DIRECTORY "../test/bench")
#target_compile_definitions(bench_sql_nse PRIVATE nse_debug_mode=false)