-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (21 loc) · 773 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (21 loc) · 773 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
cmake_minimum_required(VERSION 3.9)
project(team_algorithms_oop)
set(CMAKE_CXX_STANDARD 17)
set(TESTS_DIR ${CMAKE_SOURCE_DIR}/tests)
set(SRC_DIR ${CMAKE_SOURCE_DIR}/src)
set(DEPS_DIR ${CMAKE_SOURCE_DIR}/deps)
set(INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include_directories(${SRC_DIR})
include_directories(${DEPS_DIR})
include_directories(${DEPS_DIR}/cereal/include)
include_directories(${INCLUDE_DIR})
set(LIB_NAME ${PROJECT_NAME}core)
option(ENABLE_TESTS "Build tests for project" ON)
if(ENABLE_TESTS)
enable_testing()
add_subdirectory(${TESTS_DIR})
endif()
add_executable(main main.cpp)
target_link_libraries(main PRIVATE sqlite3)