From 3f9f5aaee4bca735f072e3e15fba32823f4a9131 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 26 Sep 2010 23:16:16 +0200 Subject: [PATCH] Changed: Generate only one config.h in root --- code/CMakeLists.txt | 8 ++++++- code/{nel => }/config.h.cmake | 5 +++++ code/nel/CMakeLists.txt | 4 ---- code/ryzom/CMakeLists.txt | 6 ----- code/ryzom/config.h.cmake | 42 ----------------------------------- 5 files changed, 12 insertions(+), 53 deletions(-) rename code/{nel => }/config.h.cmake (85%) delete mode 100644 code/ryzom/config.h.cmake diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 03df44113..edd30296d 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -68,7 +68,13 @@ NL_SETUP_NEL_DEFAULT_OPTIONS() NL_SETUP_NELNS_DEFAULT_OPTIONS() NL_SETUP_RYZOM_DEFAULT_OPTIONS() NL_SETUP_SNOWBALLS_DEFAULT_OPTIONS() + NL_SETUP_PREFIX_PATHS() +RYZOM_SETUP_PREFIX_PATHS() + +IF(NOT WIN32) + NL_CONFIGURE_CHECKS() +ENDIF(NOT WIN32) #----------------------------------------------------------------------------- #Platform specifics @@ -116,7 +122,7 @@ IF(FINAL_VERSION) ADD_DEFINITIONS(-DFINAL_VERSION=1) ENDIF(FINAL_VERSION) -IF(WITH_QT) +IF(WITH_QT) FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml REQUIRED) ENDIF(WITH_QT) diff --git a/code/nel/config.h.cmake b/code/config.h.cmake similarity index 85% rename from code/nel/config.h.cmake rename to code/config.h.cmake index 5296b3d50..0bdb9ad73 100644 --- a/code/nel/config.h.cmake +++ b/code/config.h.cmake @@ -40,4 +40,9 @@ #cmakedefine NL_LIB_PREFIX "${NL_LIB_PREFIX}" #cmakedefine NL_DRIVER_PREFIX "${NL_DRIVER_PREFIX}" +#cmakedefine RYZOM_PREFIX "${RYZOM_PREFIX}" +#cmakedefine RYZOM_BIN_PREFIX "${RYZOM_BIN_PREFIX}" +#cmakedefine RYZOM_ETC_PREFIX "${RYZOM_ETC_PREFIX}" +#cmakedefine RYZOM_SHARE_PREFIX "${RYZOM_SHARE_PREFIX}" + #endif // CONFIG_H diff --git a/code/nel/CMakeLists.txt b/code/nel/CMakeLists.txt index 3bf3dc72b..001b50601 100644 --- a/code/nel/CMakeLists.txt +++ b/code/nel/CMakeLists.txt @@ -72,10 +72,6 @@ IF(UNIX) INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION bin) ENDIF(UNIX) -IF(NOT WIN32) - NL_CONFIGURE_CHECKS() -ENDIF(NOT WIN32) - ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(src) diff --git a/code/ryzom/CMakeLists.txt b/code/ryzom/CMakeLists.txt index bf0aa4c19..4202738c1 100644 --- a/code/ryzom/CMakeLists.txt +++ b/code/ryzom/CMakeLists.txt @@ -18,12 +18,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src ) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common ) SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src) -RYZOM_SETUP_PREFIX_PATHS() - -IF(NOT WIN32) - NL_CONFIGURE_CHECKS() -ENDIF(NOT WIN32) - IF(WITH_STATIC) FIND_PACKAGE(OpenSSL QUIET) IF(OPENSSL_FOUND) diff --git a/code/ryzom/config.h.cmake b/code/ryzom/config.h.cmake deleted file mode 100644 index 68b81f02b..000000000 --- a/code/ryzom/config.h.cmake +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -#cmakedefine HAVE_DL_H 1 -#cmakedefine HAVE_EXECINFO_H 1 -#cmakedefine HAVE_ICONV 1 -#cmakedefine HAVE_INTTYPES_H 1 -#cmakedefine HAVE_LANGINFO_CODESET 1 -#cmakedefine HAVE_LIMITS_H 1 -#cmakedefine HAVE_MALLOC_H 1 -#cmakedefine HAVE_PAM_MISC_H 1 -#cmakedefine HAVE_PAM_PAM_APPL_H 1 -#cmakedefine HAVE_PTHREAD 1 -#cmakedefine HAVE_SECURITY_PAM_APPL_H 1 -#cmakedefine HAVE_SECURITY_PAM_MISC_H 1 -#cmakedefine HAVE_STDINT_H 1 -#cmakedefine HAVE_SYS_MOUNT_H 1 -#cmakedefine HAVE_SYS_PARAM_H 1 -#cmakedefine HAVE_SYS_STATVFS_H 1 -#cmakedefine HAVE_SYS_TYPES_H 1 -#cmakedefine HAVE_UNISTD_H 1 -#cmakedefine HAVE_UTIME_H 1 -#cmakedefine HAVE_WCHAR_H 1 - -#cmakedefine HAVE_BACKTRACE 1 -#cmakedefine HAVE_INET_NTOA 1 -#cmakedefine HAVE_INET_NTOP 1 -#cmakedefine HAVE_INET_PTON 1 -#cmakedefine HAVE_STRERROR 1 -#cmakedefine HAVE_STRLCAT 1 -#cmakedefine HAVE_STRPTIME 1 -#cmakedefine HAVE_STRTOK_R 1 -#cmakedefine HAVE_STRTOULL 1 -#cmakedefine HAVE_STATVFS 1 -#cmakedefine HAVE_STAT64 1 - -#cmakedefine RYZOM_PREFIX "${RYZOM_PREFIX}" -#cmakedefine RYZOM_BIN_PREFIX "${RYZOM_BIN_PREFIX}" -#cmakedefine RYZOM_ETC_PREFIX "${RYZOM_ETC_PREFIX}" -#cmakedefine RYZOM_SHARE_PREFIX "${RYZOM_SHARE_PREFIX}" - -#endif // CONFIG_H