mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
15 lines
414 B
CMake
15 lines
414 B
CMake
project(chat)
|
|
|
|
include_directories(../../include)
|
|
file(GLOB SRC_FILES ../../demo/chat/*.cpp)
|
|
file(GLOB HEAD_FILES ../../demo/chat/*.h)
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../output)
|
|
|
|
link_directories(${EXECUTABLE_OUTPUT_PATH})
|
|
add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEAD_FILES})
|
|
|
|
target_link_libraries(${PROJECT_NAME} ipc)
|
|
if(NOT MSVC)
|
|
target_link_libraries(${PROJECT_NAME} pthread rt)
|
|
endif()
|