summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt20
-rw-r--r--src/char/CMakeLists.txt62
-rw-r--r--src/common/CMakeLists.txt166
-rw-r--r--src/login/CMakeLists.txt12
-rw-r--r--src/login/sql/CMakeLists.txt39
-rw-r--r--src/map/CMakeLists.txt12
-rw-r--r--src/map/sql/CMakeLists.txt118
-rw-r--r--src/plugins/CMakeLists.txt36
-rw-r--r--src/tool/CMakeLists.txt45
9 files changed, 0 insertions, 510 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
deleted file mode 100644
index 0c120f99a..000000000
--- a/src/CMakeLists.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-
-#
-# setup and static libraries
-#
-add_subdirectory( common )
-if( HAVE_common_sql )
- option( BUILD_SQL_SERVERS "build sql server executables" ON )
-else()
- message( STATUS "Disabled sql server targets (requires common_sql)" )
-endif()
-
-
-#
-# targets
-#
-add_subdirectory( login )
-add_subdirectory( char )
-add_subdirectory( map )
-add_subdirectory( tool )
-add_subdirectory( plugins )
diff --git a/src/char/CMakeLists.txt b/src/char/CMakeLists.txt
deleted file mode 100644
index 9413ff303..000000000
--- a/src/char/CMakeLists.txt
+++ /dev/null
@@ -1,62 +0,0 @@
-
-#
-# setup
-#
-set( SQL_CHAR_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
-
-
-#
-# char sql
-#
-if( BUILD_SQL_SERVERS )
-message( STATUS "Creating target char-server" )
-set( SQL_CHAR_HEADERS
- "${CMAKE_CURRENT_SOURCE_DIR}/char.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_auction.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_elemental.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_guild.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_homun.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_mail.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_mercenary.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_party.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_pet.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_quest.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_storage.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/inter.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/pincode.h"
- )
-set( SQL_CHAR_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/char.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_auction.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_elemental.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_guild.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_homun.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_mail.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_mercenary.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_party.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_pet.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_quest.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/int_storage.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/inter.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/pincode.c"
- )
-set( DEPENDENCIES common_sql )
-set( LIBRARIES ${GLOBAL_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${COMMON_BASE_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS} ${COMMON_BASE_DEFINITIONS}" )
-set( SOURCE_FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} ${SQL_CHAR_HEADERS} ${SQL_CHAR_SOURCES} )
-source_group( common FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} )
-source_group( char FILES ${SQL_CHAR_HEADERS} ${SQL_CHAR_SOURCES} )
-include_directories( ${INCLUDE_DIRS} )
-add_executable( char-server ${SOURCE_FILES} )
-add_dependencies( char-server ${DEPENDENCIES} )
-target_link_libraries( char-server ${LIBRARIES} ${DEPENDENCIES} )
-set_target_properties( char-server PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-if( INSTALL_COMPONENT_RUNTIME )
- cpack_add_component( Runtime_charserver_sql DESCRIPTION "char-server (sql version)" DISPLAY_NAME "char-server" GROUP Runtime )
- install( TARGETS char-server
- DESTINATION "."
- COMPONENT Runtime_charserver_sql )
-endif( INSTALL_COMPONENT_RUNTIME )
-message( STATUS "Creating target char-server - done" )
-endif( BUILD_SQL_SERVERS )
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
deleted file mode 100644
index 5653663df..000000000
--- a/src/common/CMakeLists.txt
+++ /dev/null
@@ -1,166 +0,0 @@
-
-#
-# Create svnversion.h
-#
-message( STATUS "Creating svnversion.h" )
-if( SVNVERSION )
- file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h
- "#ifndef SVNVERSION\n#define SVNVERSION ${SVNVERSION}\n#endif\n" )
-else()
- file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h "" )
-endif()
-set( GLOBAL_INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "" )
-set( SVNVERSION ${SVNVERSION}
- CACHE STRING "SVN version of the source code" )
-if( INSTALL_COMPONENT_DEVELOPMENT )
- install( FILES ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h
- DESTINATION "src/common"
- COMPONENT Development_base )
-endif( INSTALL_COMPONENT_DEVELOPMENT )
-message( STATUS "Creating svnversion.h - done" )
-
-
-#####################################################################
-# setup
-#
-set( COMMON_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}"
- CACHE PATH "common source directory" )
-mark_as_advanced( COMMON_SOURCE_DIR )
-
-set( COMMON_ALL_HEADERS
- "${CMAKE_CURRENT_BINARY_DIR}/svnversion.h"
- "${COMMON_SOURCE_DIR}/cbasetypes.h"
- "${COMMON_SOURCE_DIR}/mmo.h"
- )
-
-set( COMMON_MINI_HEADERS
- ${COMMON_ALL_HEADERS}
- "${COMMON_SOURCE_DIR}/core.h"
- "${COMMON_SOURCE_DIR}/console.h"
- "${COMMON_SOURCE_DIR}/malloc.h"
- "${COMMON_SOURCE_DIR}/showmsg.h"
- "${COMMON_SOURCE_DIR}/strlib.h"
- ${LIBCONFIG_HEADERS} # needed by showmsg.h
- CACHE INTERNAL "" )
-set( COMMON_MINI_SOURCES
- "${COMMON_SOURCE_DIR}/core.c"
- "${COMMON_SOURCE_DIR}/console.c"
- "${COMMON_SOURCE_DIR}/malloc.c"
- "${COMMON_SOURCE_DIR}/showmsg.c"
- "${COMMON_SOURCE_DIR}/strlib.c"
- ${LIBCONFIG_SOURCES} # needed by showmsg.c
- CACHE INTERNAL "" )
-set( COMMON_MINI_INCLUDE_DIRS ${LIBCONFIG_INCLUDE_DIRS} CACHE INTERNAL "" )
-set( COMMON_MINI_DEFINITIONS "-DMINICORE ${LIBCONFIG_DEFINITIONS}" CACHE INTERNAL "" )
-
-
-#
-# common_base
-#
-if( WITH_ZLIB )
-message( STATUS "Creating target common_base" )
-set( COMMON_BASE_HEADERS
- ${COMMON_ALL_HEADERS}
- "${COMMON_SOURCE_DIR}/conf.h"
- "${COMMON_SOURCE_DIR}/core.h"
- "${COMMON_SOURCE_DIR}/console.h"
- "${COMMON_SOURCE_DIR}/db.h"
- "${COMMON_SOURCE_DIR}/des.h"
- "${COMMON_SOURCE_DIR}/ers.h"
- "${COMMON_SOURCE_DIR}/grfio.h"
- "${COMMON_SOURCE_DIR}/HPM.h"
- "${COMMON_SOURCE_DIR}/HPMi.h"
- "${COMMON_SOURCE_DIR}/malloc.h"
- "${COMMON_SOURCE_DIR}/mapindex.h"
- "${COMMON_SOURCE_DIR}/md5calc.h"
- "${COMMON_SOURCE_DIR}/nullpo.h"
- "${COMMON_SOURCE_DIR}/random.h"
- "${COMMON_SOURCE_DIR}/showmsg.h"
- "${COMMON_SOURCE_DIR}/socket.h"
- "${COMMON_SOURCE_DIR}/strlib.h"
- "${COMMON_SOURCE_DIR}/timer.h"
- "${COMMON_SOURCE_DIR}/utils.h"
- "${COMMON_SOURCE_DIR}/atomic.h"
- "${COMMON_SOURCE_DIR}/spinlock.h"
- "${COMMON_SOURCE_DIR}/thread.h"
- "${COMMON_SOURCE_DIR}/mutex.h"
- ${LIBCONFIG_HEADERS} # needed by conf.h/showmsg.h
- CACHE INTERNAL "common_base headers" )
-set( COMMON_BASE_SOURCES
- "${COMMON_SOURCE_DIR}/conf.c"
- "${COMMON_SOURCE_DIR}/core.c"
- "${COMMON_SOURCE_DIR}/console.c"
- "${COMMON_SOURCE_DIR}/db.c"
- "${COMMON_SOURCE_DIR}/des.c"
- "${COMMON_SOURCE_DIR}/ers.c"
- "${COMMON_SOURCE_DIR}/grfio.c"
- "${COMMON_SOURCE_DIR}/HPM.c"
- "${COMMON_SOURCE_DIR}/malloc.c"
- "${COMMON_SOURCE_DIR}/mapindex.c"
- "${COMMON_SOURCE_DIR}/md5calc.c"
- "${COMMON_SOURCE_DIR}/nullpo.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"
- "${COMMON_SOURCE_DIR}/thread.c"
- "${COMMON_SOURCE_DIR}/mutex.c"
- ${LIBCONFIG_SOURCES} # needed by conf.c/showmsg.c
- CACHE INTERNAL "common_base sources" )
-set( COMMON_BASE_INCLUDE_DIRS
- ${LIBCONFIG_INCLUDE_DIRS}
- CACHE INTERNAL "common_base include dirs" )
-set( COMMON_BASE_DEFINITIONS
- ${LIBCONFIG_DEFINITIONS}
- CACHE INTERNAL "common_base definitions" )
-set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${MT19937AR_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${COMMON_BASE_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS} ${COMMON_BASE_DEFINITIONS}" )
-set( SOURCE_FILES ${MT19937AR_HEADERS} ${MT19937AR_SOURCES} ${COMMON_BASE_HEADERS} ${COMMON_BASE_SOURCES} )
-source_group( mt19937ar FILES ${MT19937AR_HEADERS} ${MT19937AR_SOURCES} )
-source_group( common FILES ${COMMON_BASE_HEADERS} ${COMMON_BASE_SOURCES} )
-add_library( common_base ${SOURCE_FILES} )
-target_link_libraries( common_base ${LIBRARIES} )
-set_target_properties( common_base PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-include_directories( ${INCLUDE_DIRS} )
-set( HAVE_common_base ON CACHE INTERNAL "" )
-set( TARGET_LIST ${TARGET_LIST} common_base CACHE INTERNAL "" )
-message( STATUS "Creating target common_base - done" )
-else()
-message( STATUS "Skipping target common_base (requires ZLIB)" )
-unset( HAVE_common_base CACHE )
-endif()
-
-
-#
-# common_sql
-#
-if( HAVE_common_base AND WITH_MYSQL )
-message( STATUS "Creating target common_sql" )
-set( COMMON_SQL_HEADERS
- ${COMMON_ALL_HEADERS}
- "${CMAKE_CURRENT_SOURCE_DIR}/sql.h"
- CACHE INTERNAL "common_sql headers" )
-set( COMMON_SQL_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/sql.c"
- CACHE INTERNAL "common_sql sources" )
-set( DEPENDENCIES common_base )
-set( LIBRARIES ${GLOBAL_LIBRARIES} ${MYSQL_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${MYSQL_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS}" )
-set( SOURCE_FILES ${COMMON_SQL_HEADERS} ${COMMON_SQL_SOURCES} )
-source_group( common FILES ${COMMON_SQL_HEADERS} ${COMMON_SQL_SOURCES} )
-add_library( common_sql ${SOURCE_FILES} )
-add_dependencies( common_sql ${DEPENDENCIES} )
-target_link_libraries( common_sql ${LIBRARIES} ${DEPENDENCIES} )
-set_target_properties( common_sql PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-include_directories( ${INCLUDE_DIRS} )
-set( HAVE_common_sql ON CACHE INTERNAL "" )
-set( TARGET_LIST ${TARGET_LIST} common_sql CACHE INTERNAL "" )
-message( STATUS "Creating target common_sql - done" )
-else()
-message( STATUS "Skipping target common_sql (requires common_base and MYSQL)" )
-unset( HAVE_common_sql CACHE )
-endif()
diff --git a/src/login/CMakeLists.txt b/src/login/CMakeLists.txt
deleted file mode 100644
index fa657f8fd..000000000
--- a/src/login/CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-
-#
-# setup
-#
-set( LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
-set( SQL_LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
-
-
-#
-# targets
-#
-add_subdirectory( sql )
diff --git a/src/login/sql/CMakeLists.txt b/src/login/sql/CMakeLists.txt
deleted file mode 100644
index 46cf4db02..000000000
--- a/src/login/sql/CMakeLists.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-
-#
-# login sql
-#
-if( BUILD_SQL_SERVERS )
-message( STATUS "Creating target login-server" )
-set( SQL_LOGIN_HEADERS
- "${SQL_LOGIN_SOURCE_DIR}/account.h"
- "${SQL_LOGIN_SOURCE_DIR}/ipban.h"
- "${SQL_LOGIN_SOURCE_DIR}/login.h"
- "${SQL_LOGIN_SOURCE_DIR}/loginlog.h"
- )
-set( SQL_LOGIN_SOURCES
- "${SQL_LOGIN_SOURCE_DIR}/account_sql.c"
- "${SQL_LOGIN_SOURCE_DIR}/ipban_sql.c"
- "${SQL_LOGIN_SOURCE_DIR}/login.c"
- "${SQL_LOGIN_SOURCE_DIR}/loginlog_sql.c"
- )
-set( DEPENDENCIES common_sql )
-set( LIBRARIES ${GLOBAL_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${COMMON_BASE_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS} ${COMMON_BASE_DEFINITIONS} -DWITH_SQL" )
-set( SOURCE_FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} ${SQL_LOGIN_HEADERS} ${SQL_LOGIN_SOURCES} )
-source_group( common FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} )
-source_group( login FILES ${SQL_LOGIN_HEADERS} ${SQL_LOGIN_SOURCES} )
-include_directories( ${INCLUDE_DIRS} )
-add_executable( login-server ${SOURCE_FILES} )
-add_dependencies( login-server ${DEPENDENCIES} )
-target_link_libraries( login-server ${LIBRARIES} ${DEPENDENCIES} )
-set_target_properties( login-server PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-if( INSTALL_COMPONENT_RUNTIME )
- cpack_add_component( Runtime_loginserver_sql DESCRIPTION "login-server (sql version)" DISPLAY_NAME "login-server" GROUP Runtime )
- install( TARGETS login-server
- DESTINATION "."
- COMPONENT Runtime_loginserver_sql )
-endif( INSTALL_COMPONENT_RUNTIME )
-set( TARGET_LIST ${TARGET_LIST} login-server CACHE INTERNAL "" )
-message( STATUS "Creating target login-server - done" )
-endif( BUILD_SQL_SERVERS )
diff --git a/src/map/CMakeLists.txt b/src/map/CMakeLists.txt
deleted file mode 100644
index 51c3538ef..000000000
--- a/src/map/CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-
-#
-# setup
-#
-set( MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
-set( SQL_MAP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" )
-
-
-#
-# targets
-#
-add_subdirectory( sql )
diff --git a/src/map/sql/CMakeLists.txt b/src/map/sql/CMakeLists.txt
deleted file mode 100644
index 1629b2a8b..000000000
--- a/src/map/sql/CMakeLists.txt
+++ /dev/null
@@ -1,118 +0,0 @@
-
-#
-# map sql
-#
-if( BUILD_SQL_SERVERS )
-message( STATUS "Creating target map-server" )
-set( SQL_MAP_HEADERS
- "${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}/elemental.h"
- "${SQL_MAP_SOURCE_DIR}/guild.h"
- "${SQL_MAP_SOURCE_DIR}/homunculus.h"
- "${SQL_MAP_SOURCE_DIR}/HPMmap.h"
- "${SQL_MAP_SOURCE_DIR}/instance.h"
- "${SQL_MAP_SOURCE_DIR}/intif.h"
- "${SQL_MAP_SOURCE_DIR}/irc-bot.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}/packets.h"
- "${SQL_MAP_SOURCE_DIR}/packets_struct.h"
- "${SQL_MAP_SOURCE_DIR}/party.h"
- "${SQL_MAP_SOURCE_DIR}/path.h"
- "${SQL_MAP_SOURCE_DIR}/pc.h"
- "${SQL_MAP_SOURCE_DIR}/pc_groups.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
- "${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}/elemental.c"
- "${SQL_MAP_SOURCE_DIR}/guild.c"
- "${SQL_MAP_SOURCE_DIR}/homunculus.c"
- "${SQL_MAP_SOURCE_DIR}/HPMmap.c"
- "${SQL_MAP_SOURCE_DIR}/instance.c"
- "${SQL_MAP_SOURCE_DIR}/intif.c"
- "${SQL_MAP_SOURCE_DIR}/irc-bot.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}/pc_groups.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} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${COMMON_BASE_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS} ${COMMON_BASE_DEFINITIONS}" )
-if( WITH_PCRE )
- message( STATUS "Enabled PCRE code" )
- set( LIBRARIES ${LIBRARIES} ${PCRE_LIBRARIES} )
- set( INCLUDE_DIRS ${INCLUDE_DIRS} ${PCRE_INCLUDE_DIRS} )
- set( DEFINITIONS "${DEFINITIONS} -DPCRE_SUPPORT" )
-else()
- message( STATUS "Disabled PCRE code" )
-endif()
-set( SOURCE_FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} ${SQL_MAP_HEADERS} ${SQL_MAP_SOURCES} )
-source_group( common FILES ${COMMON_BASE_HEADERS} ${COMMON_SQL_HEADERS} )
-source_group( map FILES ${SQL_MAP_HEADERS} ${SQL_MAP_SOURCES} )
-include_directories( ${INCLUDE_DIRS} )
-add_executable( map-server ${SOURCE_FILES} )
-add_dependencies( map-server ${DEPENDENCIES} )
-target_link_libraries( map-server ${LIBRARIES} ${DEPENDENCIES} )
-set_target_properties( map-server PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-if( INSTALL_COMPONENT_RUNTIME )
- cpack_add_component( Runtime_mapserver_sql DESCRIPTION "map-server (sql version)" DISPLAY_NAME "map-server" GROUP Runtime )
- install( TARGETS map-server
- DESTINATION "."
- COMPONENT Runtime_mapserver_sql )
-endif( INSTALL_COMPONENT_RUNTIME )
-set( TARGET_LIST ${TARGET_LIST} map-server CACHE INTERNAL "" )
-message( STATUS "Creating target map-server - done" )
-endif( BUILD_SQL_SERVERS )
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
deleted file mode 100644
index e3043a668..000000000
--- a/src/plugins/CMakeLists.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# setup
-#
-get_property( CAN_BUILD_SHARED_LIBS GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS )
-if( NOT CAN_BUILD_SHARED_LIBS )
- return()
-endif()
-
-#
-# sample
-#
-option( BUILD_PLUGIN_sample "build sample plugin" OFF )
-if( BUILD_PLUGIN_sample )
-message( STATUS "Creating target sample" )
-set( SAMPLE_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/sample.c"
- )
-set( LIBRARIES ${GLOBAL_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} )
-set( DEFINITIONS ${GLOBAL_DEFINITIONS} )
-set( SOURCE_FILES ${SAMPLE_SOURCES} )
-source_group( sample FILES ${SAMPLE_SOURCES} )
-include_directories( ${INCLUDE_DIRS} )
-add_library( sample SHARED ${SOURCE_FILES} )
-target_link_libraries( sample ${LIBRARIES} )
-set_target_properties( sample PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-set_target_properties( sample PROPERTIES PREFIX "" )
-if( INSTALL_COMPONENT_RUNTIME )
- cpack_add_component( Runtime_sample DESCRIPTION "sample plugin" DISPLAY_NAME "sample" GROUP Runtime )
- install( TARGETS sample
- DESTINATION "plugins"
- COMPONENT Runtime_sample )
-endif( INSTALL_COMPONENT_RUNTIME )
-set( TARGET_LIST ${TARGET_LIST} sample CACHE INTERNAL "" )
-message( STATUS "Creating target sample - done" )
-endif( BUILD_PLUGIN_sample )
diff --git a/src/tool/CMakeLists.txt b/src/tool/CMakeLists.txt
deleted file mode 100644
index a54ffa0e2..000000000
--- a/src/tool/CMakeLists.txt
+++ /dev/null
@@ -1,45 +0,0 @@
-
-#
-# mapcache
-#
-if( WITH_ZLIB )
- option( BUILD_MAPCACHE "build mapcache executable" ON )
-else()
- message( STATUS "Disabled mapcache target (required ZLIB)" )
-endif()
-if( BUILD_MAPCACHE )
-message( STATUS "Creating target mapcache" )
-set( COMMON_HEADERS
- ${COMMON_MINI_HEADERS}
- "${COMMON_SOURCE_DIR}/des.h"
- "${COMMON_SOURCE_DIR}/grfio.h"
- "${COMMON_SOURCE_DIR}/utils.h"
- )
-set( COMMON_SOURCES
- ${COMMON_MINI_SOURCES}
- "${COMMON_SOURCE_DIR}/des.c"
- "${COMMON_SOURCE_DIR}/grfio.c"
- "${COMMON_SOURCE_DIR}/utils.c"
- )
-set( MAPCACHE_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/mapcache.c"
- )
-set( LIBRARIES ${GLOBAL_LIBRARIES} ${ZLIB_LIBRARIES} )
-set( INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${COMMON_MINI_INCLUDE_DIRS} )
-set( DEFINITIONS "${GLOBAL_DEFINITIONS} ${COMMON_MINI_DEFINITIONS}" )
-set( SOURCE_FILES ${COMMON_HEADERS} ${COMMON_SOURCES} ${MAPCACHE_SOURCES} )
-source_group( common FILES ${COMMON_HEADERS} ${COMMON_SOURCES} )
-source_group( mapcache FILES ${MAPCACHE_SOURCES} )
-add_executable( mapcache ${SOURCE_FILES} )
-include_directories( ${INCLUDE_DIRS} )
-target_link_libraries( mapcache ${LIBRARIES} )
-set_target_properties( mapcache PROPERTIES COMPILE_FLAGS "${DEFINITIONS}" )
-if( INSTALL_COMPONENT_RUNTIME )
- cpack_add_component( Runtime_mapcache DESCRIPTION "mapcache generator" DISPLAY_NAME "mapcache" GROUP Runtime )
- install( TARGETS mapcache
- DESTINATION "."
- COMPONENT Runtime_mapcache )
-endif( INSTALL_COMPONENT_RUNTIME )
-set( TARGET_LIST ${TARGET_LIST} mapcache CACHE INTERNAL "" )
-message( STATUS "Creating target mapcache - done" )
-endif( BUILD_MAPCACHE )