diff options
author | flaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-07-10 23:46:51 +0000 |
---|---|---|
committer | flaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-07-10 23:46:51 +0000 |
commit | 8729e952e08aa1af4e315060208a405b759f1027 (patch) | |
tree | 248f705cf3a7d8f1292558d58692e5a1edbdf34d /src/map | |
parent | e165e4a1f7fe8b25d92834461c3bc8bdf2530f85 (diff) | |
download | hercules-8729e952e08aa1af4e315060208a405b759f1027.tar.gz hercules-8729e952e08aa1af4e315060208a405b759f1027.tar.bz2 hercules-8729e952e08aa1af4e315060208a405b759f1027.tar.xz hercules-8729e952e08aa1af4e315060208a405b759f1027.zip |
* CMake: added txt-converter targets, added warning for 64bit, added list of available targets.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14900 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/map/sql/CMakeLists.txt | 141 | ||||
-rw-r--r-- | src/map/txt/CMakeLists.txt | 141 |
3 files changed, 145 insertions, 141 deletions
diff --git a/src/map/CMakeLists.txt b/src/map/CMakeLists.txt index 9199702be..1d82fc2ca 100644 --- a/src/map/CMakeLists.txt +++ b/src/map/CMakeLists.txt @@ -2,7 +2,9 @@ # # setup # -set( MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} ) +set( MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) +set( TXT_MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) +set( SQL_MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) # diff --git a/src/map/sql/CMakeLists.txt b/src/map/sql/CMakeLists.txt index 74598423a..ae16148d4 100644 --- a/src/map/sql/CMakeLists.txt +++ b/src/map/sql/CMakeLists.txt @@ -5,77 +5,77 @@ if( HAVE_common_sql ) message( STATUS "Creating target map-server_sql" ) set( SQL_MAP_HEADERS - "${MAP_SOURCE_DIR}/atcommand.h" - "${MAP_SOURCE_DIR}/battle.h" - "${MAP_SOURCE_DIR}/battleground.h" - "${MAP_SOURCE_DIR}/buyingstore.h" - "${MAP_SOURCE_DIR}/chat.h" - "${MAP_SOURCE_DIR}/chrif.h" - "${MAP_SOURCE_DIR}/clif.h" - "${MAP_SOURCE_DIR}/date.h" - "${MAP_SOURCE_DIR}/duel.h" - "${MAP_SOURCE_DIR}/guild.h" - "${MAP_SOURCE_DIR}/homunculus.h" - "${MAP_SOURCE_DIR}/instance.h" - "${MAP_SOURCE_DIR}/intif.h" - "${MAP_SOURCE_DIR}/itemdb.h" - "${MAP_SOURCE_DIR}/log.h" - "${MAP_SOURCE_DIR}/mail.h" - "${MAP_SOURCE_DIR}/map.h" - "${MAP_SOURCE_DIR}/mapreg.h" - "${MAP_SOURCE_DIR}/mercenary.h" - "${MAP_SOURCE_DIR}/mob.h" - "${MAP_SOURCE_DIR}/npc.h" - "${MAP_SOURCE_DIR}/party.h" - "${MAP_SOURCE_DIR}/path.h" - "${MAP_SOURCE_DIR}/pc.h" - "${MAP_SOURCE_DIR}/pet.h" - "${MAP_SOURCE_DIR}/quest.h" - "${MAP_SOURCE_DIR}/script.h" - "${MAP_SOURCE_DIR}/searchstore.h" - "${MAP_SOURCE_DIR}/skill.h" - "${MAP_SOURCE_DIR}/status.h" - "${MAP_SOURCE_DIR}/storage.h" - "${MAP_SOURCE_DIR}/trade.h" - "${MAP_SOURCE_DIR}/unit.h" - "${MAP_SOURCE_DIR}/vending.h" + "${SQL_MAP_SOURCE_DIR}/atcommand.h" + "${SQL_MAP_SOURCE_DIR}/battle.h" + "${SQL_MAP_SOURCE_DIR}/battleground.h" + "${SQL_MAP_SOURCE_DIR}/buyingstore.h" + "${SQL_MAP_SOURCE_DIR}/chat.h" + "${SQL_MAP_SOURCE_DIR}/chrif.h" + "${SQL_MAP_SOURCE_DIR}/clif.h" + "${SQL_MAP_SOURCE_DIR}/date.h" + "${SQL_MAP_SOURCE_DIR}/duel.h" + "${SQL_MAP_SOURCE_DIR}/guild.h" + "${SQL_MAP_SOURCE_DIR}/homunculus.h" + "${SQL_MAP_SOURCE_DIR}/instance.h" + "${SQL_MAP_SOURCE_DIR}/intif.h" + "${SQL_MAP_SOURCE_DIR}/itemdb.h" + "${SQL_MAP_SOURCE_DIR}/log.h" + "${SQL_MAP_SOURCE_DIR}/mail.h" + "${SQL_MAP_SOURCE_DIR}/map.h" + "${SQL_MAP_SOURCE_DIR}/mapreg.h" + "${SQL_MAP_SOURCE_DIR}/mercenary.h" + "${SQL_MAP_SOURCE_DIR}/mob.h" + "${SQL_MAP_SOURCE_DIR}/npc.h" + "${SQL_MAP_SOURCE_DIR}/party.h" + "${SQL_MAP_SOURCE_DIR}/path.h" + "${SQL_MAP_SOURCE_DIR}/pc.h" + "${SQL_MAP_SOURCE_DIR}/pet.h" + "${SQL_MAP_SOURCE_DIR}/quest.h" + "${SQL_MAP_SOURCE_DIR}/script.h" + "${SQL_MAP_SOURCE_DIR}/searchstore.h" + "${SQL_MAP_SOURCE_DIR}/skill.h" + "${SQL_MAP_SOURCE_DIR}/status.h" + "${SQL_MAP_SOURCE_DIR}/storage.h" + "${SQL_MAP_SOURCE_DIR}/trade.h" + "${SQL_MAP_SOURCE_DIR}/unit.h" + "${SQL_MAP_SOURCE_DIR}/vending.h" ) set( SQL_MAP_SOURCES - "${MAP_SOURCE_DIR}/atcommand.c" - "${MAP_SOURCE_DIR}/battle.c" - "${MAP_SOURCE_DIR}/battleground.c" - "${MAP_SOURCE_DIR}/buyingstore.c" - "${MAP_SOURCE_DIR}/chat.c" - "${MAP_SOURCE_DIR}/chrif.c" - "${MAP_SOURCE_DIR}/clif.c" - "${MAP_SOURCE_DIR}/date.c" - "${MAP_SOURCE_DIR}/duel.c" - "${MAP_SOURCE_DIR}/guild.c" - "${MAP_SOURCE_DIR}/homunculus.c" - "${MAP_SOURCE_DIR}/instance.c" - "${MAP_SOURCE_DIR}/intif.c" - "${MAP_SOURCE_DIR}/itemdb.c" - "${MAP_SOURCE_DIR}/log.c" - "${MAP_SOURCE_DIR}/mail.c" - "${MAP_SOURCE_DIR}/map.c" - "${MAP_SOURCE_DIR}/mapreg_sql.c" - "${MAP_SOURCE_DIR}/mercenary.c" - "${MAP_SOURCE_DIR}/mob.c" - "${MAP_SOURCE_DIR}/npc.c" - "${MAP_SOURCE_DIR}/npc_chat.c" - "${MAP_SOURCE_DIR}/party.c" - "${MAP_SOURCE_DIR}/path.c" - "${MAP_SOURCE_DIR}/pc.c" - "${MAP_SOURCE_DIR}/pet.c" - "${MAP_SOURCE_DIR}/quest.c" - "${MAP_SOURCE_DIR}/script.c" - "${MAP_SOURCE_DIR}/searchstore.c" - "${MAP_SOURCE_DIR}/skill.c" - "${MAP_SOURCE_DIR}/status.c" - "${MAP_SOURCE_DIR}/storage.c" - "${MAP_SOURCE_DIR}/trade.c" - "${MAP_SOURCE_DIR}/unit.c" - "${MAP_SOURCE_DIR}/vending.c" + "${SQL_MAP_SOURCE_DIR}/atcommand.c" + "${SQL_MAP_SOURCE_DIR}/battle.c" + "${SQL_MAP_SOURCE_DIR}/battleground.c" + "${SQL_MAP_SOURCE_DIR}/buyingstore.c" + "${SQL_MAP_SOURCE_DIR}/chat.c" + "${SQL_MAP_SOURCE_DIR}/chrif.c" + "${SQL_MAP_SOURCE_DIR}/clif.c" + "${SQL_MAP_SOURCE_DIR}/date.c" + "${SQL_MAP_SOURCE_DIR}/duel.c" + "${SQL_MAP_SOURCE_DIR}/guild.c" + "${SQL_MAP_SOURCE_DIR}/homunculus.c" + "${SQL_MAP_SOURCE_DIR}/instance.c" + "${SQL_MAP_SOURCE_DIR}/intif.c" + "${SQL_MAP_SOURCE_DIR}/itemdb.c" + "${SQL_MAP_SOURCE_DIR}/log.c" + "${SQL_MAP_SOURCE_DIR}/mail.c" + "${SQL_MAP_SOURCE_DIR}/map.c" + "${SQL_MAP_SOURCE_DIR}/mapreg_sql.c" + "${SQL_MAP_SOURCE_DIR}/mercenary.c" + "${SQL_MAP_SOURCE_DIR}/mob.c" + "${SQL_MAP_SOURCE_DIR}/npc.c" + "${SQL_MAP_SOURCE_DIR}/npc_chat.c" + "${SQL_MAP_SOURCE_DIR}/party.c" + "${SQL_MAP_SOURCE_DIR}/path.c" + "${SQL_MAP_SOURCE_DIR}/pc.c" + "${SQL_MAP_SOURCE_DIR}/pet.c" + "${SQL_MAP_SOURCE_DIR}/quest.c" + "${SQL_MAP_SOURCE_DIR}/script.c" + "${SQL_MAP_SOURCE_DIR}/searchstore.c" + "${SQL_MAP_SOURCE_DIR}/skill.c" + "${SQL_MAP_SOURCE_DIR}/status.c" + "${SQL_MAP_SOURCE_DIR}/storage.c" + "${SQL_MAP_SOURCE_DIR}/trade.c" + "${SQL_MAP_SOURCE_DIR}/unit.c" + "${SQL_MAP_SOURCE_DIR}/vending.c" ) set( DEPENDENCIES common_sql ) set( LIBRARIES ${GLOBAL_LIBRARIES} ) @@ -101,9 +101,10 @@ if( WITH_COMPONENT_RUNTIME ) DESTINATION "." COMPONENT Runtime_mapserver_sql ) endif() -message( STATUS "Creating target map-server_sql - done" ) set( HAVE_map-server_sql ON CACHE BOOL "map-server_sql target is available" ) mark_as_advanced( HAVE_map-server_sql ) +set( TARGET_LIST ${TARGET_LIST} map-server_sql CACHE INTERNAL "" ) +message( STATUS "Creating target map-server_sql - done" ) else() message( STATUS "Skipping target map-server_sql (requires common_sql; optional PCRE)" ) unset( HAVE_map-server_sql CACHE ) diff --git a/src/map/txt/CMakeLists.txt b/src/map/txt/CMakeLists.txt index d58866f96..4e3bfbb0c 100644 --- a/src/map/txt/CMakeLists.txt +++ b/src/map/txt/CMakeLists.txt @@ -5,77 +5,77 @@ if( HAVE_common_base ) message( STATUS "Creating target map-server" ) set( TXT_MAP_HEADERS - "${MAP_SOURCE_DIR}/atcommand.h" - "${MAP_SOURCE_DIR}/battle.h" - "${MAP_SOURCE_DIR}/battleground.h" - "${MAP_SOURCE_DIR}/buyingstore.h" - "${MAP_SOURCE_DIR}/chat.h" - "${MAP_SOURCE_DIR}/chrif.h" - "${MAP_SOURCE_DIR}/clif.h" - "${MAP_SOURCE_DIR}/date.h" - "${MAP_SOURCE_DIR}/duel.h" - "${MAP_SOURCE_DIR}/guild.h" - "${MAP_SOURCE_DIR}/homunculus.h" - "${MAP_SOURCE_DIR}/instance.h" - "${MAP_SOURCE_DIR}/intif.h" - "${MAP_SOURCE_DIR}/itemdb.h" - "${MAP_SOURCE_DIR}/log.h" - "${MAP_SOURCE_DIR}/mail.h" - "${MAP_SOURCE_DIR}/map.h" - "${MAP_SOURCE_DIR}/mapreg.h" - "${MAP_SOURCE_DIR}/mercenary.h" - "${MAP_SOURCE_DIR}/mob.h" - "${MAP_SOURCE_DIR}/npc.h" - "${MAP_SOURCE_DIR}/party.h" - "${MAP_SOURCE_DIR}/path.h" - "${MAP_SOURCE_DIR}/pc.h" - "${MAP_SOURCE_DIR}/pet.h" - "${MAP_SOURCE_DIR}/quest.h" - "${MAP_SOURCE_DIR}/script.h" - "${MAP_SOURCE_DIR}/searchstore.h" - "${MAP_SOURCE_DIR}/skill.h" - "${MAP_SOURCE_DIR}/status.h" - "${MAP_SOURCE_DIR}/storage.h" - "${MAP_SOURCE_DIR}/trade.h" - "${MAP_SOURCE_DIR}/unit.h" - "${MAP_SOURCE_DIR}/vending.h" + "${TXT_MAP_SOURCE_DIR}/atcommand.h" + "${TXT_MAP_SOURCE_DIR}/battle.h" + "${TXT_MAP_SOURCE_DIR}/battleground.h" + "${TXT_MAP_SOURCE_DIR}/buyingstore.h" + "${TXT_MAP_SOURCE_DIR}/chat.h" + "${TXT_MAP_SOURCE_DIR}/chrif.h" + "${TXT_MAP_SOURCE_DIR}/clif.h" + "${TXT_MAP_SOURCE_DIR}/date.h" + "${TXT_MAP_SOURCE_DIR}/duel.h" + "${TXT_MAP_SOURCE_DIR}/guild.h" + "${TXT_MAP_SOURCE_DIR}/homunculus.h" + "${TXT_MAP_SOURCE_DIR}/instance.h" + "${TXT_MAP_SOURCE_DIR}/intif.h" + "${TXT_MAP_SOURCE_DIR}/itemdb.h" + "${TXT_MAP_SOURCE_DIR}/log.h" + "${TXT_MAP_SOURCE_DIR}/mail.h" + "${TXT_MAP_SOURCE_DIR}/map.h" + "${TXT_MAP_SOURCE_DIR}/mapreg.h" + "${TXT_MAP_SOURCE_DIR}/mercenary.h" + "${TXT_MAP_SOURCE_DIR}/mob.h" + "${TXT_MAP_SOURCE_DIR}/npc.h" + "${TXT_MAP_SOURCE_DIR}/party.h" + "${TXT_MAP_SOURCE_DIR}/path.h" + "${TXT_MAP_SOURCE_DIR}/pc.h" + "${TXT_MAP_SOURCE_DIR}/pet.h" + "${TXT_MAP_SOURCE_DIR}/quest.h" + "${TXT_MAP_SOURCE_DIR}/script.h" + "${TXT_MAP_SOURCE_DIR}/searchstore.h" + "${TXT_MAP_SOURCE_DIR}/skill.h" + "${TXT_MAP_SOURCE_DIR}/status.h" + "${TXT_MAP_SOURCE_DIR}/storage.h" + "${TXT_MAP_SOURCE_DIR}/trade.h" + "${TXT_MAP_SOURCE_DIR}/unit.h" + "${TXT_MAP_SOURCE_DIR}/vending.h" ) set( TXT_MAP_SOURCES - "${MAP_SOURCE_DIR}/atcommand.c" - "${MAP_SOURCE_DIR}/battle.c" - "${MAP_SOURCE_DIR}/battleground.c" - "${MAP_SOURCE_DIR}/buyingstore.c" - "${MAP_SOURCE_DIR}/chat.c" - "${MAP_SOURCE_DIR}/chrif.c" - "${MAP_SOURCE_DIR}/clif.c" - "${MAP_SOURCE_DIR}/date.c" - "${MAP_SOURCE_DIR}/duel.c" - "${MAP_SOURCE_DIR}/guild.c" - "${MAP_SOURCE_DIR}/homunculus.c" - "${MAP_SOURCE_DIR}/instance.c" - "${MAP_SOURCE_DIR}/intif.c" - "${MAP_SOURCE_DIR}/itemdb.c" - "${MAP_SOURCE_DIR}/log.c" - "${MAP_SOURCE_DIR}/mail.c" - "${MAP_SOURCE_DIR}/map.c" - "${MAP_SOURCE_DIR}/mapreg_txt.c" - "${MAP_SOURCE_DIR}/mercenary.c" - "${MAP_SOURCE_DIR}/mob.c" - "${MAP_SOURCE_DIR}/npc.c" - "${MAP_SOURCE_DIR}/npc_chat.c" - "${MAP_SOURCE_DIR}/party.c" - "${MAP_SOURCE_DIR}/path.c" - "${MAP_SOURCE_DIR}/pc.c" - "${MAP_SOURCE_DIR}/pet.c" - "${MAP_SOURCE_DIR}/quest.c" - "${MAP_SOURCE_DIR}/script.c" - "${MAP_SOURCE_DIR}/searchstore.c" - "${MAP_SOURCE_DIR}/skill.c" - "${MAP_SOURCE_DIR}/status.c" - "${MAP_SOURCE_DIR}/storage.c" - "${MAP_SOURCE_DIR}/trade.c" - "${MAP_SOURCE_DIR}/unit.c" - "${MAP_SOURCE_DIR}/vending.c" + "${TXT_MAP_SOURCE_DIR}/atcommand.c" + "${TXT_MAP_SOURCE_DIR}/battle.c" + "${TXT_MAP_SOURCE_DIR}/battleground.c" + "${TXT_MAP_SOURCE_DIR}/buyingstore.c" + "${TXT_MAP_SOURCE_DIR}/chat.c" + "${TXT_MAP_SOURCE_DIR}/chrif.c" + "${TXT_MAP_SOURCE_DIR}/clif.c" + "${TXT_MAP_SOURCE_DIR}/date.c" + "${TXT_MAP_SOURCE_DIR}/duel.c" + "${TXT_MAP_SOURCE_DIR}/guild.c" + "${TXT_MAP_SOURCE_DIR}/homunculus.c" + "${TXT_MAP_SOURCE_DIR}/instance.c" + "${TXT_MAP_SOURCE_DIR}/intif.c" + "${TXT_MAP_SOURCE_DIR}/itemdb.c" + "${TXT_MAP_SOURCE_DIR}/log.c" + "${TXT_MAP_SOURCE_DIR}/mail.c" + "${TXT_MAP_SOURCE_DIR}/map.c" + "${TXT_MAP_SOURCE_DIR}/mapreg_txt.c" + "${TXT_MAP_SOURCE_DIR}/mercenary.c" + "${TXT_MAP_SOURCE_DIR}/mob.c" + "${TXT_MAP_SOURCE_DIR}/npc.c" + "${TXT_MAP_SOURCE_DIR}/npc_chat.c" + "${TXT_MAP_SOURCE_DIR}/party.c" + "${TXT_MAP_SOURCE_DIR}/path.c" + "${TXT_MAP_SOURCE_DIR}/pc.c" + "${TXT_MAP_SOURCE_DIR}/pet.c" + "${TXT_MAP_SOURCE_DIR}/quest.c" + "${TXT_MAP_SOURCE_DIR}/script.c" + "${TXT_MAP_SOURCE_DIR}/searchstore.c" + "${TXT_MAP_SOURCE_DIR}/skill.c" + "${TXT_MAP_SOURCE_DIR}/status.c" + "${TXT_MAP_SOURCE_DIR}/storage.c" + "${TXT_MAP_SOURCE_DIR}/trade.c" + "${TXT_MAP_SOURCE_DIR}/unit.c" + "${TXT_MAP_SOURCE_DIR}/vending.c" ) set( DEPENDENCIES common_base ) set( LIBRARIES ${GLOBAL_LIBRARIES} ) @@ -101,9 +101,10 @@ if( WITH_COMPONENT_RUNTIME ) DESTINATION "." COMPONENT Runtime_mapserver_txt ) endif() -message( STATUS "Creating target map-server - done" ) set( HAVE_map-server ON CACHE BOOL "map-server target is available" ) mark_as_advanced( HAVE_map-server ) +set( TARGET_LIST ${TARGET_LIST} map-server CACHE INTERNAL "" ) +message( STATUS "Creating target map-server - done" ) else() message( STATUS "Skipping target map-server (requires common_base; optional PCRE)" ) unset( HAVE_map-server CACHE ) |