-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
25 lines (17 loc) · 889 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
project (dynamic_thread_pool)
cmake_minimum_required (VERSION 3.0)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -pedantic -O0 -g3 -std=c++11 -fPIC")
set (CMAKE_BINARY_DIR bin)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
find_library (THREAD_LIB libpthread.so)
include_directories(include)
add_executable(BaseUsage0 examples/baseUsage0.cpp)
target_link_libraries (BaseUsage0 ${THREAD_LIB})
add_executable(BaseUsage1 examples/baseUsage1.cpp)
target_link_libraries (BaseUsage1 ${THREAD_LIB})
add_executable(DynamicityTest0 examples/dynamicityTest0.cpp)
target_link_libraries (DynamicityTest0 ${THREAD_LIB})
add_executable(DynamicityTest1 examples/dynamicityTest1.cpp)
target_link_libraries (DynamicityTest1 ${THREAD_LIB})
add_executable(WorkerThreadTest examples/workerThreadTest.cpp)
target_link_libraries (WorkerThreadTest ${THREAD_LIB})