-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (32 loc) · 977 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
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.5)
project(SigSlot LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (WIN32)
add_definitions("-DCORE_WIN -DCORE_HAVE_THREAD_LOCAL")
elseif (APPLE)
add_definitions("-DCORE_POSIX -DCORE_HAVE_THREAD_LOCAL")
endif (APPLE)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/thread-pool/include)
file(GLOB_RECURSE SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.h**)
add_executable(SigSlot
${SRC_FILES}
main.cpp
core/event.cpp
core/task_queue_base.cpp
core/task_queue_manager.cpp
core/task_queue_stdlib.cpp
core/task_queue.cpp
core/time_utils.cpp
core/system_time.cpp
core/warn_current_thread_is_deadlocked.cpp
core/yield.cpp
core/yield_policy.cpp)
if (WIN32)
target_link_libraries(SigSlot winmm.lib)
endif (WIN32)
include(GNUInstallDirs)
install(TARGETS SigSlot
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)