-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (42 loc) · 842 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
53 lines (42 loc) · 842 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 2.8)
project(sample-code)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Locate GTest
find_package(GTest REQUIRED)
make_directory(build)
include_directories(
${PROJECT_BUILD_DIR}
${PROJECT_SOURCE_DIR}
${GTEST_INCLUDE_DIRS}
)
# Link executables
add_executable(
build/sampleTopKTest
tests/topK_test.cpp
)
target_link_libraries(
build/sampleTopKTest
${GTEST_LIBRARIES}
pthread
)
# Link executables
add_executable(
build/randomGeneratorTest
tests/random_generator_test.cpp
)
target_link_libraries(
build/randomGeneratorTest
${GTEST_LIBRARIES}
pthread
)
# Link executables
add_executable(
build/binaryGapTest
tests/binary_gap_test.cpp
)
target_link_libraries(
build/binaryGapTest
${GTEST_LIBRARIES}
pthread
)