-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (22 loc) · 965 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
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.6)
project(ntbpp)
set(CMAKE_CXX_STANDARD 17)
set(TESTS_DIR tests)
enable_testing()
add_executable(colors_test ${TESTS_DIR}/colors.cpp)
set_target_properties(colors_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${TESTS_DIR}")
add_test(colors_test ${TESTS_DIR}/colors_test)
add_executable(templates_test ${TESTS_DIR}/templates.cpp)
set_target_properties(templates_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${TESTS_DIR}")
add_test(templates_test ${TESTS_DIR}/templates_test)
add_executable(types_test ${TESTS_DIR}/types.cpp)
set_target_properties(types_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${TESTS_DIR}")
add_test(types_test ${TESTS_DIR}/types_test)
install(FILES
notixbit.h
DESTINATION include/notixbit/ntbpp)
install(DIRECTORY
colors
templates
types
DESTINATION include/notixbit/ntbpp)