-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
22 lines (16 loc) · 950 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
project(huMessageQueue)
set(CMAKE_C_STANDARD 11)
add_library(tools STATIC src/tools.c "include/huIPC/tools.h")
target_include_directories(tools PUBLIC include/huIPC)
add_library(sharedMemory STATIC src/win/sharedMemory.c "include/huIPC/sharedMemory.h" "include/huIPC/dll.h")
target_include_directories(sharedMemory PUBLIC include/huIPC)
target_link_libraries(sharedMemory PUBLIC tools)
add_library(event STATIC src/win/event.c "include/huIPC/event.h" "include/huIPC/dll.h")
target_include_directories(event PUBLIC include/huIPC)
target_link_libraries(event PUBLIC tools)
add_library(huMessageQueue SHARED src/huMessageQueue.c "include/huIPC/huMessageQueue.h" "include/huIPC/dll.h")
target_include_directories(huMessageQueue PUBLIC include/huIPC)
target_link_libraries(huMessageQueue PUBLIC sharedMemory)
target_link_libraries(huMessageQueue PUBLIC event)
add_executable(tests src/test_cir.c)
target_link_libraries(tests PRIVATE huMessageQueue)