summaryrefslogtreecommitdiff
path: root/src/tool
diff options
context:
space:
mode:
authorflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-07 03:21:42 +0000
committerflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-07 03:21:42 +0000
commit76d7c8ad887ac7b9dfdb495fe26ef8d4d8dfe370 (patch)
tree053d4d29a26693e1714f3e44383b8c2b1ac7199f /src/tool
parent482beafefb9c50e5c1d3d16fd69b88cf2c9e84db (diff)
downloadhercules-76d7c8ad887ac7b9dfdb495fe26ef8d4d8dfe370.tar.gz
hercules-76d7c8ad887ac7b9dfdb495fe26ef8d4d8dfe370.tar.bz2
hercules-76d7c8ad887ac7b9dfdb495fe26ef8d4d8dfe370.tar.xz
hercules-76d7c8ad887ac7b9dfdb495fe26ef8d4d8dfe370.zip
* CMake: normalized variable names, added ability to create a package/installer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14890 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/CMakeLists.txt35
1 files changed, 7 insertions, 28 deletions
diff --git a/src/tool/CMakeLists.txt b/src/tool/CMakeLists.txt
index e39b174dd..a23637e3d 100644
--- a/src/tool/CMakeLists.txt
+++ b/src/tool/CMakeLists.txt
@@ -1,30 +1,8 @@
-# setup
-set( COMMON_SOURCES
- "${COMMON_SOURCE_DIR}/core.c"
-# "${COMMON_SOURCE_DIR}/db.c"
-# "${COMMON_SOURCE_DIR}/ers.c"
- "${COMMON_SOURCE_DIR}/grfio.c"
-# "${COMMON_SOURCE_DIR}/lock.c"
- "${COMMON_SOURCE_DIR}/malloc.c"
-# "${COMMON_SOURCE_DIR}/mapindex.c"
-# "${COMMON_SOURCE_DIR}/md5calc.c"
-# "${COMMON_SOURCE_DIR}/nullpo.c"
-# "${COMMON_SOURCE_DIR}/plugins.c"
-# "${COMMON_SOURCE_DIR}/random.c"
- "${COMMON_SOURCE_DIR}/showmsg.c"
-# "${COMMON_SOURCE_DIR}/socket.c"
- "${COMMON_SOURCE_DIR}/strlib.c"
-# "${COMMON_SOURCE_DIR}/timer.c"
- "${COMMON_SOURCE_DIR}/utils.c"
- )
-set( MAPCACHE_SOURCES
- mapcache.c
- )
-
-
+#
# mapcache
-if( USE_ZLIB )
+#
+if( WITH_ZLIB )
message( STATUS "Creating target mapcache" )
set( COMMON_HEADERS
${COMMON_MINI_HEADERS}
@@ -49,10 +27,11 @@ add_executable( mapcache ${SOURCE_FILES} )
include_directories( ${INCLUDE_DIRS} )
target_link_libraries( mapcache ${ZLIB_LIBRARIES} )
set_target_properties( mapcache PROPERTIES COMPILE_DEFINITIONS "${DEFINITIONS}" )
-if( INSTALL_RUN_DATA )
+if( WITH_COMPONENT_RUNTIME )
+ cpack_add_component( Runtime_mapcache DESCRIPTION "mapcache generator" DISPLAY_NAME "mapcache" GROUP Runtime )
install( TARGETS mapcache
- DESTINATION ${CMAKE_INSTALL_PREFIX}
- COMPONENT "mapcache" )
+ DESTINATION "."
+ COMPONENT Runtime_mapcache )
endif()
message( STATUS "Creating target mapcache - done" )
set( HAVE_mapcache ON CACHE BOOL "mapcache target is available" )