mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 17:26:48 +08:00
15 lines
362 B
CMake
15 lines
362 B
CMake
project(ipc)
|
|
|
|
add_compile_definitions(__IPC_LIBRARY__)
|
|
|
|
include_directories(../../include ../../src)
|
|
|
|
if(UNIX)
|
|
file(GLOB DIR_SRCS ../../src/platform/*_linux.cpp)
|
|
else()
|
|
file(GLOB DIR_SRCS ../../src/platform/*_win.cpp)
|
|
endif()
|
|
aux_source_directory(../../src DIR_SRCS)
|
|
|
|
add_library(ipc SHARED ${DIR_SRCS})
|
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../output) |