-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 1.09 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
cmake_minimum_required(VERSION 3.17)
project(HW2)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -pthread --coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -pthread --coverage")
add_compile_options("--coverage")
add_subdirectory(lib/utils)
add_subdirectory(lib/word_search)
add_subdirectory(lib/word_search_procs)
enable_testing()
find_package(GTest REQUIRED)
add_executable(tests tests/test.cpp)
include_directories(${GTEST_INCLUDE_DIRS})
target_link_libraries(tests ${GTEST_LIBRARIES} utils word_search gcov)
add_executable(tests_procs tests/test.cpp)
include_directories(${GTEST_INCLUDE_DIRS})
target_link_libraries(tests_procs ${GTEST_LIBRARIES} utils word_search_procs gcov)
add_executable(stress_test tests/stress_test.cpp)
include_directories(${GTEST_INCLUDE_DIRS})
target_link_libraries(stress_test ${GTEST_LIBRARIES} utils word_search gcov)
add_executable(stress_test_procs tests/stress_test.cpp)
include_directories(${GTEST_INCLUDE_DIRS})
target_link_libraries(stress_test_procs ${GTEST_LIBRARIES} utils word_search_procs gcov)