mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 17:26:48 +08:00
16 lines
373 B
CMake
16 lines
373 B
CMake
project(ipc)
|
|
|
|
add_compile_options(-D__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(${PROJECT_NAME} SHARED ${DIR_SRCS})
|
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../output)
|