You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
965 B

message("* * * * * * * * * * * * * * * * *")
message("* _____ _______ _____ *")
message("* / ____| |__ __| | __ \\ *")
message("* | | | | | |__) | *")
message("* | | | | | ___/ *")
message("* | |____ | | | | *")
message("* \\_____| |_| |_| *")
message("* * * * * * * * * * * * * * * * *")
cmake_minimum_required(VERSION 3.2.5)
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)