-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (17 loc) · 907 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
cmake_minimum_required(VERSION 3.12)
project(CompileTimeLib VERSION 1.0 DESCRIPTION "A compile-time container and algorithm library" LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(include)
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
enable_testing()
add_executable(test_static_vector tests/static_vector.cpp)
target_link_libraries(test_static_vector ${GTEST_BOTH_LIBRARIES} pthread)
add_test(NAME StaticVectorTest COMMAND test_static_vector)
add_executable(test_static_set tests/static_set.cpp)
target_link_libraries(test_static_set ${GTEST_BOTH_LIBRARIES} pthread)
add_test(NAME StaticSetTest COMMAND test_static_set)
add_executable(test_static_function tests/static_function.cpp)
target_link_libraries(test_static_function ${GTEST_BOTH_LIBRARIES} pthread)
add_test(NAME StaticFunctionTest COMMAND test_static_function)