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.
 
 
 

17 lines
394 B

cmake_minimum_required(VERSION 3.0)
set(CMAKE_C_STANDARD 99)
project(tiny_thread_pool LANGUAGES C)
option(BUILD_DYN "build shared library" OFF)
if (BUILD_DYN)
add_compile_options(-fPIC)
add_library(tiny_pool SHARED tiny_pool.c)
else()
add_library(tiny_pool STATIC tiny_pool.c)
endif()
target_link_libraries(tiny_pool pthread)
add_subdirectory(demo/c)
add_subdirectory(demo/cpp)