forked from sorokin/counted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (27 loc) · 990 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
31
32
33
cmake_minimum_required(VERSION 2.8)
project(BIGINT)
include_directories(${BIGINT_SOURCE_DIR})
add_executable(vector_testing
vector_testing.cpp
counted.h
counted.cpp
fault_injection.h
fault_injection.cpp
gtest/gtest-all.cc
gtest/gtest.h
gtest/gtest_main.cc)
add_executable(set_testing
set_testing.cpp
counted.h
counted.cpp
fault_injection.h
fault_injection.cpp
gtest/gtest-all.cc
gtest/gtest.h
gtest/gtest_main.cc)
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++17 -pedantic")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address,undefined -D_GLIBCXX_DEBUG")
endif()
target_link_libraries(set_testing -lpthread)
target_link_libraries(vector_testing -lpthread)