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/login | |
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/login')
-rw-r--r-- | src/login/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/login/sql/CMakeLists.txt | 19 | ||||
-rw-r--r-- | src/login/txt/CMakeLists.txt | 19 |
3 files changed, 23 insertions, 19 deletions
diff --git a/src/login/CMakeLists.txt b/src/login/CMakeLists.txt index afa4e5f20..eabc47eac 100644 --- a/src/login/CMakeLists.txt +++ b/src/login/CMakeLists.txt @@ -2,7 +2,9 @@ # # setup # -set( LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} ) +set( LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) +set( TXT_LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) +set( SQL_LOGIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" ) # diff --git a/src/login/sql/CMakeLists.txt b/src/login/sql/CMakeLists.txt index ac7d464c9..ed23ba684 100644 --- a/src/login/sql/CMakeLists.txt +++ b/src/login/sql/CMakeLists.txt @@ -5,16 +5,16 @@ if( HAVE_common_sql ) message( STATUS "Creating target login-server_sql" ) set( SQL_LOGIN_HEADERS - "${LOGIN_SOURCE_DIR}/account.h" - "${LOGIN_SOURCE_DIR}/ipban.h" - "${LOGIN_SOURCE_DIR}/login.h" - "${LOGIN_SOURCE_DIR}/loginlog.h" + "${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 - "${LOGIN_SOURCE_DIR}/account_sql.c" - "${LOGIN_SOURCE_DIR}/ipban_sql.c" - "${LOGIN_SOURCE_DIR}/login.c" - "${LOGIN_SOURCE_DIR}/loginlog_sql.c" + "${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} ) @@ -34,9 +34,10 @@ if( WITH_COMPONENT_RUNTIME ) DESTINATION "." COMPONENT Runtime_loginserver_sql ) endif() -message( STATUS "Creating target login-server_sql - done" ) set( HAVE_login-server_sql ON CACHE BOOL "login-server_sql target is available" ) mark_as_advanced( HAVE_login-server_sql ) +set( TARGET_LIST ${TARGET_LIST} login-server_sql CACHE INTERNAL "" ) +message( STATUS "Creating target login-server_sql - done" ) else() message( STATUS "Skipping target login-server_sql (requires common_sql)" ) unset( HAVE_login-server_sql CACHE ) diff --git a/src/login/txt/CMakeLists.txt b/src/login/txt/CMakeLists.txt index 9d57103e9..195de250e 100644 --- a/src/login/txt/CMakeLists.txt +++ b/src/login/txt/CMakeLists.txt @@ -5,16 +5,16 @@ if( HAVE_common_base ) message( STATUS "Creating target login-server" ) set( TXT_LOGIN_HEADERS - "${LOGIN_SOURCE_DIR}/account.h" - "${LOGIN_SOURCE_DIR}/ipban.h" - "${LOGIN_SOURCE_DIR}/login.h" - "${LOGIN_SOURCE_DIR}/loginlog.h" + "${TXT_LOGIN_SOURCE_DIR}/account.h" + "${TXT_LOGIN_SOURCE_DIR}/ipban.h" + "${TXT_LOGIN_SOURCE_DIR}/login.h" + "${TXT_LOGIN_SOURCE_DIR}/loginlog.h" ) set( TXT_LOGIN_SOURCES - "${LOGIN_SOURCE_DIR}/account_txt.c" - "${LOGIN_SOURCE_DIR}/ipban_txt.c" - "${LOGIN_SOURCE_DIR}/login.c" - "${LOGIN_SOURCE_DIR}/loginlog_txt.c" + "${TXT_LOGIN_SOURCE_DIR}/account_txt.c" + "${TXT_LOGIN_SOURCE_DIR}/ipban_txt.c" + "${TXT_LOGIN_SOURCE_DIR}/login.c" + "${TXT_LOGIN_SOURCE_DIR}/loginlog_txt.c" ) set( DEPENDENCIES common_base ) set( LIBRARIES ${GLOBAL_LIBRARIES} ) @@ -34,9 +34,10 @@ if( WITH_COMPONENT_RUNTIME ) DESTINATION "." COMPONENT Runtime_loginserver_txt ) endif() -message( STATUS "Creating target login-server - done" ) set( HAVE_login-server ON CACHE BOOL "login-server target is available" ) mark_as_advanced( HAVE_login-server ) +set( TARGET_LIST ${TARGET_LIST} login-server CACHE INTERNAL "" ) +message( STATUS "Creating target login-server - done" ) else() message( STATUS "Skipping target login-server (requires common_base)" ) unset( HAVE_login-server CACHE ) |