2014-12-06 21:45:51 -08: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()
|
|
|
|
|
2016-11-23 05:55:25 -08:00
|
|
|
if(MSVC)
|
2018-09-12 07:49:13 -07:00
|
|
|
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
2016-11-23 05:55:25 -08:00
|
|
|
endif()
|
|
|
|
|
2014-12-06 21:45:51 -08:00
|
|
|
add_library(ipc-util STATIC
|
|
|
|
${ipc-util_SOURCES}
|
|
|
|
${ipc-util_HEADERS})
|
2020-09-08 13:23:49 -07:00
|
|
|
set_target_properties(ipc-util PROPERTIES
|
|
|
|
FOLDER "deps"
|
|
|
|
POSITION_INDEPENDENT_CODE ON)
|
2014-12-06 21:45:51 -08:00
|
|
|
target_include_directories(ipc-util
|
|
|
|
PUBLIC .)
|
|
|
|
target_link_libraries(ipc-util)
|