summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/CMakeLists.txt8
-rw-r--r--src/char_sql/CMakeLists.txt8
-rw-r--r--src/login/CMakeLists.txt12
-rw-r--r--src/map/CMakeLists.txt14
-rw-r--r--src/tool/CMakeLists.txt4
5 files changed, 39 insertions, 7 deletions
diff --git a/src/char/CMakeLists.txt b/src/char/CMakeLists.txt
index 666070532..5c2d66c3c 100644
--- a/src/char/CMakeLists.txt
+++ b/src/char/CMakeLists.txt
@@ -1,5 +1,7 @@
+#
# setup
+#
set( MT19937AR_SOURCES
# "${MT19937AR_SOURCE_DIR}/mt19937ar.c"
)
@@ -33,7 +35,9 @@ set( CHAR_SOURCES
)
+#
# char txt
+#
if( USE_ZLIB )
message ( STATUS "Creating target char-server" )
set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} )
@@ -56,7 +60,9 @@ add_executable( char-server ${SOURCE_FILES} )
target_link_libraries( char-server ${LIBRARIES} )
set_target_properties( char-server PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS char-server DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS char-server
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "char-server" )
endif()
message ( STATUS "Creating target char-server - done" )
else()
diff --git a/src/char_sql/CMakeLists.txt b/src/char_sql/CMakeLists.txt
index d534ce89c..412393b21 100644
--- a/src/char_sql/CMakeLists.txt
+++ b/src/char_sql/CMakeLists.txt
@@ -1,5 +1,7 @@
+#
# setup
+#
set( MT19937AR_SOURCES
# "${MT19937AR_SOURCE_DIR}/mt19937ar.c"
)
@@ -37,7 +39,9 @@ set( CHAR_SOURCES
)
+#
# char sql
+#
if( USE_ZLIB AND USE_MYSQL )
message ( STATUS "Creating target char-server_sql" )
set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} ${MYSQL_LIBRARIES} )
@@ -60,7 +64,9 @@ add_executable( char-server_sql ${SOURCE_FILES} )
target_link_libraries( char-server_sql ${LIBRARIES} )
set_target_properties( char-server_sql PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS char-server_sql DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS char-server_sql
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "char-server_sql" )
endif()
message ( STATUS "Creating target char-server_sql - done" )
else()
diff --git a/src/login/CMakeLists.txt b/src/login/CMakeLists.txt
index 88d137507..b75878eed 100644
--- a/src/login/CMakeLists.txt
+++ b/src/login/CMakeLists.txt
@@ -1,5 +1,7 @@
+#
# setup
+#
set( MT19937AR_SOURCES
"${MT19937AR_SOURCE_DIR}/mt19937ar.c"
)
@@ -64,7 +66,9 @@ add_executable( login-server ${SOURCE_FILES} )
target_link_libraries( login-server ${LIBRARIES} )
set_target_properties( login-server PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS login-server DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS login-server
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "login-server" )
endif()
message ( STATUS "Creating target login-server - done" )
else()
@@ -72,7 +76,9 @@ message ( STATUS "Skipping target login-server (requires ZLIB)" )
endif()
+#
# login sql
+#
if( USE_ZLIB AND USE_MYSQL )
message ( STATUS "Creating target login-server_sql" )
set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} ${MYSQL_LIBRARIES} )
@@ -95,7 +101,9 @@ add_executable( login-server_sql ${SOURCE_FILES} )
target_link_libraries( login-server_sql ${LIBRARIES} )
set_target_properties( login-server_sql PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS login-server_sql DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS login-server_sql
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "login-server_sql" )
endif()
message ( STATUS "Creating target login-server_sql - done" )
else()
diff --git a/src/map/CMakeLists.txt b/src/map/CMakeLists.txt
index e5589a30e..7189bbdd7 100644
--- a/src/map/CMakeLists.txt
+++ b/src/map/CMakeLists.txt
@@ -1,5 +1,7 @@
+#
# setup
+#
set( MT19937AR_SOURCES
"${MT19937AR_SOURCE_DIR}/mt19937ar.c"
)
@@ -68,7 +70,9 @@ set( MAP_SQL_SOURCES
)
+#
# map txt
+#
if( USE_ZLIB )
message ( STATUS "Creating target map-server" )
set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} )
@@ -96,7 +100,9 @@ add_executable( map-server ${SOURCE_FILES} )
target_link_libraries( map-server ${LIBRARIES} )
set_target_properties( map-server PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS map-server DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS map-server
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "map-server" )
endif()
message ( STATUS "Creating target map-server - done" )
else()
@@ -104,7 +110,9 @@ message ( STATUS "Skipping target map-server (requires ZLIB; optional PCRE)" )
endif()
+#
# map sql
+#
if( USE_ZLIB AND USE_MYSQL )
message ( STATUS "Creating target map-server_sql" )
set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} ${MYSQL_LIBRARIES} )
@@ -132,7 +140,9 @@ add_executable( map-server_sql ${SOURCE_FILES} )
target_link_libraries( map-server_sql ${LIBRARIES} )
set_target_properties( map-server_sql PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS map-server_sql DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS map-server_sql
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "map-server_sql" )
endif()
message ( STATUS "Creating target map-server_sql - done" )
else()
diff --git a/src/tool/CMakeLists.txt b/src/tool/CMakeLists.txt
index 5b4880893..4f69174b9 100644
--- a/src/tool/CMakeLists.txt
+++ b/src/tool/CMakeLists.txt
@@ -41,7 +41,9 @@ include_directories( ${INCLUDE_DIRS} )
target_link_libraries( mapcache ${ZLIB_LIBRARIES} )
set_target_properties( mapcache PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
if( INSTALL_RUN_DATA )
- install( TARGETS mapcache DESTINATION ${CMAKE_INSTALL_PREFIX} )
+ install( TARGETS mapcache
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ COMPONENT "mapcache" )
endif()
message ( STATUS "Creating target mapcache - done" )
else()