From d69ea5fda6ea08958e0159ab95be3c52caba67d2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 17 Oct 2013 16:09:39 +0100 Subject: [PATCH] Kill off EMBEDDED_SIMGEAR --- CMakeLists.txt | 62 ++++++++++++++++++++------------------------------ 1 file changed, 25 insertions(+), 37 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 440f147e..3b60b851 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,33 +23,31 @@ if(InSourceBuild) message(WARNING " mkdir ../sgbuild && cd ../sgbuild && cmake ${CMAKE_SOURCE_DIR}") endif(InSourceBuild) -if (NOT EMBEDDED_SIMGEAR) - #packaging - SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING") - SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README") - SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Simulation support libraries for FlightGear and related projects") - SET(CPACK_PACKAGE_VENDOR "The FlightGear project") - SET(CPACK_GENERATOR "TBZ2") - SET(CPACK_INSTALL_CMAKE_PROJECTS ${CMAKE_CURRENT_BINARY_DIR};SimGear;ALL;/) - - - # split version string into components, note CMAKE_MATCH_0 is the entire regexp match - string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" CPACK_PACKAGE_VERSION ${SIMGEAR_VERSION} ) - set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1}) - set(CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_2}) - set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3}) - - message(STATUS "version is ${CPACK_PACKAGE_VERSION_MAJOR} dot ${CPACK_PACKAGE_VERSION_MINOR} dot ${CPACK_PACKAGE_VERSION_PATCH}") - - set(CPACK_SOURCE_GENERATOR TBZ2) - set(CPACK_SOURCE_PACKAGE_FILE_NAME "simgear-${SIMGEAR_VERSION}" CACHE INTERNAL "tarball basename") - set(CPACK_SOURCE_IGNORE_FILES - "^${PROJECT_SOURCE_DIR}/.git;\\\\.gitignore;Makefile.am;~$;${CPACK_SOURCE_IGNORE_FILES}") - - message(STATUS "ignoring: ${CPACK_SOURCE_IGNORE_FILES}") - - include (CPack) -endif() +#packaging +SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING") +SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README") +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Simulation support libraries for FlightGear and related projects") +SET(CPACK_PACKAGE_VENDOR "The FlightGear project") +SET(CPACK_GENERATOR "TBZ2") +SET(CPACK_INSTALL_CMAKE_PROJECTS ${CMAKE_CURRENT_BINARY_DIR};SimGear;ALL;/) + + +# split version string into components, note CMAKE_MATCH_0 is the entire regexp match +string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" CPACK_PACKAGE_VERSION ${SIMGEAR_VERSION} ) +set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1}) +set(CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_2}) +set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3}) + +message(STATUS "version is ${CPACK_PACKAGE_VERSION_MAJOR} dot ${CPACK_PACKAGE_VERSION_MINOR} dot ${CPACK_PACKAGE_VERSION_PATCH}") + +set(CPACK_SOURCE_GENERATOR TBZ2) +set(CPACK_SOURCE_PACKAGE_FILE_NAME "simgear-${SIMGEAR_VERSION}" CACHE INTERNAL "tarball basename") +set(CPACK_SOURCE_IGNORE_FILES + "^${PROJECT_SOURCE_DIR}/.git;\\\\.gitignore;Makefile.am;~$;${CPACK_SOURCE_IGNORE_FILES}") + +message(STATUS "ignoring: ${CPACK_SOURCE_IGNORE_FILES}") + +include (CPack) # We have some custom .cmake scripts not in the official distribution. set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}") @@ -89,13 +87,6 @@ if(NOT "${CMAKE_LIBRARY_ARCHITECTURE}" STREQUAL "") message(STATUS "additional library directories: ${ADDITIONAL_LIBRARY_PATHS}") endif() -if(NOT MSVC) - # TBD: are these really necessary? Aren't they considered by cmake automatically? - list(APPEND ADDITIONAL_LIBRARY_PATHS - /opt/local - /usr/local - /usr) -endif() ##################################################################################### if (NOT MSVC) @@ -359,7 +350,6 @@ include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR} - ${LibArchive_INCLUDE_DIRS} ) add_definitions(-DHAVE_CONFIG_H) @@ -400,7 +390,6 @@ install (FILES ${PROJECT_BINARY_DIR}/simgear/simgear_config.h DESTINATION inclu add_subdirectory(3rdparty) add_subdirectory(simgear) -if (NOT EMBEDDED_SIMGEAR) #----------------------------------------------------------------------------- ### uninstall target #----------------------------------------------------------------------------- @@ -411,5 +400,4 @@ CONFIGURE_FILE( ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") -endif() -- 2.39.5