2016-02-23 23:16:51 +00:00
|
|
|
# TODO: Add posix support
|
|
|
|
if(NOT WIN32)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
project(ipc-util)
|
|
|
|
|
|
|
|
set(ipc-util_HEADERS
|
|
|
|
ipc-util/pipe.h)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(ipc-util_HEADERS
|
|
|
|
${ipc-util_HEADERS}
|
|
|
|
ipc-util/pipe-windows.h)
|
|
|
|
set(ipc-util_SOURCES
|
|
|
|
ipc-util/pipe-windows.c)
|
|
|
|
else()
|
|
|
|
set(ipc-util_HEADERS
|
|
|
|
${ipc-util_HEADERS}
|
|
|
|
ipc-util/pipe-posix.h)
|
|
|
|
set(ipc-util_SOURCES
|
|
|
|
ipc-util/pipe-posix.c)
|
|
|
|
endif()
|
|
|
|
|
2017-04-19 19:54:15 +00:00
|
|
|
if(MSVC)
|
2019-07-27 12:47:10 +00:00
|
|
|
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
2017-04-19 19:54:15 +00:00
|
|
|
endif()
|
|
|
|
|
2016-02-23 23:16:51 +00:00
|
|
|
add_library(ipc-util STATIC
|
|
|
|
${ipc-util_SOURCES}
|
|
|
|
${ipc-util_HEADERS})
|
|
|
|
target_include_directories(ipc-util
|
|
|
|
PUBLIC .)
|
|
|
|
target_link_libraries(ipc-util)
|