CuPBoP/runtime/threadPool/CMakeLists.txt

20 lines
463 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.1)
# C project
project(
ThreadPool
DESCRIPTION "Using pthread to implement ThreadPool"
LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(LIB_NAME threadPool)
set(CMAKE_CXX_STANDARD 14)
include_directories(../../common)
2022-06-18 10:20:13 +08:00
include_directories(./include)
include_directories(./include/cpu)
include_directories(../../external/moodycamel)
file(GLOB proj_SOURCES "src/cpu/*.cpp")
add_library(${LIB_NAME} SHARED ${proj_SOURCES})