Prepare for optionally embedded SimGear.

This commit is contained in:
James Turner 2013-01-26 15:31:06 +01:00
parent 98b6102e56
commit d11db8a67a

View File

@ -21,6 +21,7 @@ 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")
@ -46,6 +47,7 @@ set(CPACK_SOURCE_IGNORE_FILES
message(STATUS "ignoring: ${CPACK_SOURCE_IGNORE_FILES}")
include (CPack)
endif()
# We have some custom .cmake scripts not in the official distribution.
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
@ -363,6 +365,7 @@ endif(ENABLE_TESTS)
install (FILES ${PROJECT_BINARY_DIR}/simgear/simgear_config.h DESTINATION include/simgear/)
add_subdirectory(simgear)
if (NOT EMBEDDED_SIMGEAR)
#-----------------------------------------------------------------------------
### uninstall target
#-----------------------------------------------------------------------------
@ -372,3 +375,6 @@ CONFIGURE_FILE(
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
endif()