-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeLists.txt
32 lines (23 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
31
32
message("* * * * * * * * * * * * * * * * *")
message("* _____ _______ _____ *")
message("* / ____| |__ __| | __ \\ *")
message("* | | | | | |__) | *")
message("* | | | | | ___/ *")
message("* | |____ | | | | *")
message("* \\_____| |_| |_| *")
message("* * * * * * * * * * * * * * * * *")
cmake_minimum_required(VERSION 3.5.0)
project(CThreadPool VERSION 1.2.1)
set(CMAKE_CXX_STANDARD 11)
# add CThreadPool environment info
include(cmake/CThreadPool-env-include.cmake)
file(GLOB_RECURSE CTP_SRC_LIST "./src/*.cpp")
# 如果开启此宏定义,则CGraph执行过程中,不会在控制台打印任何信息
# add_definitions(-D_CGRAPH_SILENCE_)
# 编译libCThreadPool动态库
# add_library(CThreadPool SHARED ${CTP_SRC_LIST})
# 编译libCThreadPool静态库
# add_library(CThreadPool STATIC ${CTP_SRC_LIST})
add_executable(CThreadPool
${CTP_SRC_LIST}
tutorial.cpp)