diff options
author | Naios <naios-dev@live.de> | 2016-03-14 16:52:27 +0100 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2016-03-19 23:19:53 +0100 |
commit | 5fe83abbe57c9c640bbfc506f0e879c2ae4f81a9 (patch) | |
tree | 91c4fa542770b867b7ec3af87b17b3575c3f7d94 /src/server/ipc | |
parent | 0db4f018e8df1a44d2657ca21e2e47038c1aab06 (diff) |
CMake: Use inherited dependencies in database, shared and game
(cherry picked from commit 469f2d3ade168de0b5be18112008c337067a8e03)
Diffstat (limited to 'src/server/ipc')
-rw-r--r-- | src/server/ipc/CMakeLists.txt | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/src/server/ipc/CMakeLists.txt b/src/server/ipc/CMakeLists.txt index 2a865229af8..8469c922066 100644 --- a/src/server/ipc/CMakeLists.txt +++ b/src/server/ipc/CMakeLists.txt @@ -8,18 +8,26 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -file(GLOB_RECURSE sources_ipc *.cpp *.h) +CollectSourceFiles( + ${CMAKE_CURRENT_SOURCE_DIR} + PRIVATE_SOURCES) -set(ipc_SRCS - ${sources_ipc} -) +GroupSources(${CMAKE_CURRENT_SOURCE_DIR}) -include_directories( - ${CMAKE_BINARY_DIR} - ${CMAKE_SOURCE_DIR}/dep/zmqpp - ${CMAKE_SOURCE_DIR}/src/common - ${CMAKE_SOURCE_DIR}/src/server/shared - ${ZMQ_INCLUDE_DIR} -) +add_library(ipc ${PRIVATE_SOURCES}) -add_library(ipc STATIC ${ipc_SRCS}) +target_include_directories(ipc + PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR} + PRIVATE + ${CMAKE_CURRENT_BINARY_DIR}) + +target_link_libraries(ipc + PUBLIC + shared + zmqpp) + +set_target_properties(ipc + PROPERTIES + FOLDER + "server") |