CMakeLists.txt   CMakeLists.txt 
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Avoid repeating the IF statement in the ENDIF and ELSE # Avoid repeating the IF statement in the ENDIF and ELSE
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
IF(COMMAND cmake_policy)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF()
########### Project name ########### ########### Project name ###########
PROJECT(Stellarium) PROJECT(Stellarium)
SET(STELLARIUM_MAJOR "0") SET(STELLARIUM_MAJOR "0")
SET(STELLARIUM_MINOR "10") SET(STELLARIUM_MINOR "10")
SET(STELLARIUM_PATCH "2") SET(STELLARIUM_PATCH "4")
SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}") SET(VERSION "${STELLARIUM_MAJOR}.${STELLARIUM_MINOR}.${STELLARIUM_PATCH}")
SET(PACKAGE stellarium) SET(PACKAGE stellarium)
# Use customized cmake macros
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
########### Main global variables ########### ########### Main global variables ###########
IF(NOT CMAKE_BUILD_TYPE) IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, opti ons are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, opti ons are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF() ENDIF()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(APPLE 1) SET(APPLE 1)
ENDIF() ENDIF()
IF(UNIX AND NOT WIN32) IF(UNIX AND NOT WIN32)
SET(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l C compile flags SET(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l C compile flags
SET(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l CPP compile flags SET(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter") # additiona l CPP compile flags
ELSE() ELSE()
SET(CMAKE_C_FLAGS "-Wall -fexceptions -fident -mthreads") SET(CMAKE_C_FLAGS "-Wall -fexceptions -fident -mthreads")
SET(CMAKE_CXX_FLAGS "-Wall -Wsign-promo -fexceptions -fident -mthreads") SET(CMAKE_CXX_FLAGS "-Wall -Wsign-promo -fexceptions -fident -mthreads")
SET(CMAKE_EXE_LINKER_FLAGS "-Wsign-promo -fexceptions -fident -mthreads -m SET(CMAKE_EXE_LINKER_FLAGS "-Wsign-promo -fexceptions -fident -mthreads -m
windows --large-address-aware") windows --large-address-aware") # --enable-runtime-pseudo-reloc --verbose
ENDIF()
SET(OPTIMIZE_INTEL_ATOM 0 CACHE BOOL "Activate optimizations for atom proce
ssor.")
IF(OPTIMIZE_INTEL_ATOM)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=generic -msse -msse2 -msse3 -mf
pmath=sse")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=generic -msse -msse2 -msse3
-mfpmath=sse")
ENDIF()
SET(OPTIMIZE_N900 0 CACHE BOOL "Activate optimizations for ARM Cortex-A8 wi
th NEON SIMD Compiler Options.")
IF(OPTIMIZE_N900)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=cortex-a8 -march=armv7-a -ftree
-vectorize -mfpu=neon -mfloat-abi=softfp -ffast-math -fomit-frame-pointer -
funroll-loops")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=cortex-a8 -march=armv7-a -f
tree-vectorize -mfpu=neon -mfloat-abi=softfp -ffast-math -fomit-frame-point
er -funroll-loops")
ENDIF() ENDIF()
# best way to get to APPLE? # best way to get to APPLE?
IF(APPLE) IF(APPLE)
SET(CMAKE_INCLUDE_PATH "/usr/X11/include:/usr/X11/include/freetype2:/Devel SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-common -Wall -Wextra -Wno-unused-
oper/SDKs/MacOSX10.5.sdk/usr/X11/include:/Developer/SDKs/MacOSX10.5.sdk/usr parameter")
/X11/include/freetype2:/sw/include:${CMAKE_INCLUDE_PATH}") SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.4")
SET(CMAKE_LIBRARY_PATH "/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib:/sw/lib SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.4")
:${CMAKE_LIBRARY_PATH}") SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
SET(CMAKE_C_FLAGS "-fno-common -Wall -Wextra -Wno-unused-parameter -DMACOS # Universal binary
X -I/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include -I/Developer/SDKs/MacOSX #SET(CMAKE_OSX_ARCHITECTURES "i386;ppc")
10.5.sdk/usr/X11/include/freetype2") SET(CMAKE_OSX_ARCHITECTURES "i386")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "-dylib_file /System/Library/Frameworks/OpenGL.
framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenG
L.framework/Versions/A/Libraries/libGL.dylib")
ENDIF() ENDIF()
########### Check headers ########### ########### Check headers ###########
INCLUDE(CheckIncludeFiles) INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(byteswap.h HAVE_BYTESWAP_H) CHECK_INCLUDE_FILES(byteswap.h HAVE_BYTESWAP_H)
########### Check functions ########### ########### Check functions ###########
INCLUDE(CheckFunctionExists) INCLUDE(CheckFunctionExists)
#toupper strcasecmp strdup putenv setlocale tzset strchr pow10 timegm
CHECK_FUNCTION_EXISTS(tzset HAVE_TZSET) CHECK_FUNCTION_EXISTS(tzset HAVE_TZSET)
CHECK_FUNCTION_EXISTS(pow10 HAVE_POW10) CHECK_FUNCTION_EXISTS(pow10 HAVE_POW10)
CHECK_FUNCTION_EXISTS(setlocale HAVE_SETLOCALE) CHECK_FUNCTION_EXISTS(setlocale HAVE_SETLOCALE)
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF) CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
########### Others ########### ########### Others ###########
# Activate translation with gettext # Activate translation with gettext
SET(RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release, 1 o SET(RELEASE_BUILD 1 CACHE BOOL "Flag this build as an official release.")
r 0.") SET(ENABLE_NLS 1 CACHE BOOL "Define whether program translation should be s
SET(ENABLE_NLS 1 CACHE BOOL "Define whether program translation should be s upported.")
upported, option are: 1 or 0.")
# Generate python wrappers
SET(GENERATE_PYTHON_WRAPPERS 0 CACHE BOOL "Define whether python wrapper sh
ould be build using SIP, options are: 1 or 0.")
# Create a dynamic library libstelMain
SET(GENERATE_STELMAINLIB 0)
# Activate sound support # Activate sound support
SET(ENABLE_SOUND 0 CACHE BOOL "Define whether sound support should be activ SET(ENABLE_SOUND 0 CACHE BOOL "Define whether sound support should be activ
ated, options are: 1 or 0.") ated, options are.")
# (De-)Activate the script edit console
SET(ENABLE_SCRIPT_CONSOLE 1 CACHE BOOL "Define whether to build the script
console feature, options are.")
IF(ENABLE_SCRIPT_CONSOLE)
ADD_DEFINITIONS(-DENABLE_SCRIPT_CONSOLE)
ENDIF()
SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want t o build the Stratoscript compatibility mode") SET(ENABLE_STRATOSCRIPT_COMPAT 0 CACHE BOOL "Set to 1 or true if you want t o build the Stratoscript compatibility mode")
SET(GUI_MODE Standard CACHE STRING "Choose the type of GUI to build, option
s are: Standard, None, External")
SET(OPENGL_MODE Desktop CACHE STRING "Choose the type of openGL to use, opt
ions are: Desktop, ES2")
# On WIN32 we need to split the main binary into a small binary and a dll # On WIN32 we need to split the main binary into a small binary and a dll
# This is for allowing to link plug-ins afterward # This is for allowing to link dynamic plug-ins afterward
IF (WIN32 OR GENERATE_PYTHON_WRAPPERS) IF(WIN32)
SET(GENERATE_STELMAINLIB 1) SET(GENERATE_STELMAINLIB 1)
ELSE()
SET(GENERATE_STELMAINLIB 0)
ENDIF() ENDIF()
IF(WIN32) # For Windows, the default back end for the graphics system should be "nati
LINK_LIBRARIES(wsock32) ve", as "raster"
# causes problems for many ATI users. However, for other platforms we shou
ld use raster
# as the default as it is faster.
# Mac 10.6 requires native as well.
IF(WIN32 OR APPLE)
ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="native")
ELSE()
ADD_DEFINITIONS(-DDEFAULT_GRAPHICS_SYSTEM="raster")
ENDIF() ENDIF()
IF(COMMAND cmake_policy) ########### Plugin setup #############
CMAKE_POLICY(SET CMP0003 NEW) SET(BUILD_STATIC_PLUGINS 1 CACHE BOOL "Define whether plugins should be com
piled statically and linked to the main program")
SET(BUILD_DYNAMIC_PLUGINS 0 CACHE BOOL "Define whether plugins should be co
mpiled dynamically")
SET(USE_PLUGIN_HELLOSTELMODULE 0 CACHE BOOL "Define whether the HelloStelMo
dule plugin should be created.")
SET(USE_PLUGIN_ANGLEMEASURE 1 CACHE BOOL "Define whether the AngleMeasure p
lugin should be created.")
SET(USE_PLUGIN_COMPASSMARKS 1 CACHE BOOL "Define whether the CompassMarks p
lugin should be created.")
SET(USE_PLUGIN_SATELLITES 1 CACHE BOOL "Define whether the Satellites plugi
n should be created.")
SET(USE_PLUGIN_TELESCOPECONTROL 1 CACHE BOOL "Define whether the TelescopeC
ontrol plug-in should be created.")
SET(USE_PLUGIN_LOGBOOK 0 CACHE BOOL "Define whether the LogBook plugin shou
ld be created.")
SET(USE_PLUGIN_OCULARS 1 CACHE BOOL "Define whether the Oculars plugin shou
ld be created.")
SET(USE_PLUGIN_SVMT 0 CACHE BOOL "Define whether the SVMT plugin should be
created.")
SET(USE_PLUGIN_TEXTUSERINTERFACE 1 CACHE BOOL "Define whether the TextUserI
nterface plugin should be created.")
SET(USE_PLUGIN_VIRGO 0 CACHE BOOL "Define whether the VirGO plugin should b
e created.")
########## Static plugins need to define includes and libraries
########## for the compilation of Stellarium itself
IF (BUILD_STATIC_PLUGINS)
IF (USE_PLUGIN_OCULARS)
SET(QT_USE_QTSQL TRUE)
ENDIF()
IF (USE_PLUGIN_SVMT)
## Tokyo Cabinet
FIND_PATH(TOKYOC_INCLUDE_DIR tcadb.h
/usr/include
/usr/local/include
DOC "Should point to the directory where the include files for tok
yo cabinet are installed")
FIND_LIBRARY(TOKYOC_LIBRARIES tokyocabinet
PATHS
/usr/lib/
/usr/local/lib
DOC "tokyo cabinet link options")
SET(QT_USE_QTXML TRUE) # For SVMT we also need QtXml module
SET(QT_USE_QTDECLARATIVE TRUE) # For SVMT we also need QML module, t
his line doesn't seem to work right now
ENDIF()
IF (USE_PLUGIN_VIRGO)
## Library for loading FITS image files
FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h
/usr/include
/usr/local/include
DOC "Should point to the directory where the include files for lib
cfitsio are installed")
FIND_LIBRARY(CFITSIO_LIBRARIES cfitsio
PATHS
/usr/lib/
/usr/local/lib
/opt/local/lib
DOC "cfitsio link options")
SET(QT_USE_QTXML TRUE) # For VirGO we also need QtXml module
ENDIF()
ENDIF() ENDIF()
# Custom target used to manage dependencies of stellarium -> Static plugins
# It is important that static plugins are compiled before stellarium main e
xecutable is linked
ADD_CUSTOM_TARGET(AllStaticPlugins ALL)
########### Find packages ########### ########### Find packages ###########
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) SET(QT_MIN_VERSION "4.6.0")
SET(QT_MIN_VERSION "4.4.2")
FIND_PACKAGE(Qt4 REQUIRED) FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE) SET(QT_USE_QTOPENGL TRUE)
SET(QT_USE_QTSCRIPT TRUE) SET(QT_USE_QTSCRIPT TRUE)
SET(QT_USE_QTNETWORK TRUE) SET(QT_USE_QTNETWORK TRUE)
SET(QT_USE_QTSVG TRUE)
SET(QT_USE_QTTEST TRUE)
IF(ENABLE_SOUND) IF(ENABLE_SOUND)
SET(QT_USE_PHONON TRUE)
ADD_DEFINITIONS(-DHAVE_QT_PHONON) ADD_DEFINITIONS(-DHAVE_QT_PHONON)
SET(QT_USE_PHONON TRUE)
ENDIF() ENDIF()
INCLUDE(${QT_USE_FILE}) INCLUDE(${QT_USE_FILE})
# Get rid of the QtTest dependency for the main binary. It is re-added manu
ally when compiling tests.
STRING(REPLACE "${QT_QTTEST_LIBRARY}" "" QT_LIBRARIES "${QT_LIBRARIES}")
# Get rid of the GLU dependency, it's not needed in stellarium.
STRING(REPLACE "-lGLU " "" QT_LIBRARIES "${QT_LIBRARIES}")
FIND_PACKAGE(ZLIB)
IF(ENABLE_NLS) IF(ENABLE_NLS)
FIND_PACKAGE(Iconv REQUIRED) FIND_PACKAGE(Iconv REQUIRED)
FIND_PATH(INTL_INCLUDE_DIR libintl.h FIND_PATH(INTL_INCLUDE_DIR libintl.h
/usr/include PATHS
/usr/local/include) /usr/include
/sw/include
/usr/local/include)
FIND_LIBRARY(INTL_LIBRARIES intl c FIND_LIBRARY(INTL_LIBRARIES intl c
PATHS PATHS
/usr/lib/ /usr/lib/
/usr/local/lib) /sw/lib
/usr/local/lib) # NO_DEFAULT_PATH
FIND_PACKAGE(Gettext REQUIRED) FIND_PACKAGE(Gettext REQUIRED)
ENDIF() ENDIF()
FIND_PACKAGE(OpenGL REQUIRED) IF (OPENGL_MODE STREQUAL "Desktop")
FIND_PACKAGE(PNG REQUIRED) FIND_PACKAGE(OpenGL REQUIRED)
FIND_PACKAGE(JPEG REQUIRED) ENDIF()
FIND_PACKAGE(Boost REQUIRED) IF(OPENGL_MODE STREQUAL "ES2")
FIND_PACKAGE(FreeType2 REQUIRED) ADD_DEFINITIONS(-DUSE_OPENGL_ES2 -DQT_OPENGL_LIB -D_REENTRANT -DQT_GUI_LI
B -DQT_CORE_LIB -DQT_SHARED)
# Make sure that no desktop OpenGL libraries are linked when OpenGLES is
used
STRING(REPLACE "-lGL" "-lGLESv2" QT_LIBRARIES "${QT_LIBRARIES}")
ENDIF()
########### Set some global variables ########### ########### Set some global variables ###########
IF(UNIX AND NOT WIN32) IF(UNIX AND NOT WIN32)
IF(APPLE) IF(APPLE)
SET(CMAKE_INSTALL_PREFIX "/Users/Shared/stellarium/Stellarium.app/Content SET(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/Stellarium.app/Contents")
s")
SET(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/Resources/data")
SET(INSTALL_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/Resources/locale")
ELSE(APPLE) ELSE(APPLE)
SET(INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX}/share/stellarium) SET(INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX}/share/stellarium)
SET(INSTALL_LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) SET(INSTALL_LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
ENDIF(APPLE) ENDIF()
ELSE() ELSE()
SET(INSTALL_DATADIR .) SET(INSTALL_DATADIR .)
SET(INSTALL_LOCALEDIR ./locale) SET(INSTALL_LOCALEDIR ./locale)
ENDIF() ENDIF()
########### Get SVN revision for non-release builds ########### ########### Get SVN revision for non-release builds ###########
IF(NOT RELEASE_BUILD) IF(NOT RELEASE_BUILD)
FIND_PACKAGE(Subversion) FIND_PACKAGE(Subversion)
IF(Subversion_FOUND) IF(Subversion_FOUND)
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} StelSvn) Subversion_WC_INFO(${PROJECT_SOURCE_DIR} StelSvn)
# MESSAGE("Current SVN revision is ${StelSvn_WC_REVISION}") SET(SVN_REVISION ${StelSvn_WC_REVISION})
SET(SVN_REVISION ${StelSvn_WC_REVISION})
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(ENABLE_STRATOSCRIPT_COMPAT) IF(ENABLE_STRATOSCRIPT_COMPAT)
ADD_DEFINITIONS(-DENABLE_STRATOSCRIPT_COMPAT) ADD_DEFINITIONS(-DENABLE_STRATOSCRIPT_COMPAT)
ENDIF() ENDIF()
########### Generate a config.h ########### ########### Generate a config.h ###########
INCLUDE(TestBigEndian)
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
SET(PACKAGE_VERSION ${VERSION}) SET(PACKAGE_VERSION ${VERSION})
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/confi g.h) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/confi g.h)
########### Add macros ###########
ADD_DEFINITIONS(-DHAVE_CONFIG_H) ADD_DEFINITIONS(-DHAVE_CONFIG_H)
IF(CMAKE_BUILD_TYPE STREQUAL "Release") IF(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWit hDebInfo")
ADD_DEFINITIONS(-DQT_NO_DEBUG) ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DNDEBUG) ADD_DEFINITIONS(-DNDEBUG)
ENDIF() ENDIF()
########### uninstall files ############### ########### uninstall files ###############
CONFIGURE_FILE( CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY) IMMEDIATE @ONLY)
skipping to change at line 182 skipping to change at line 276
SET(CPACK_PACKAGE_VERSION_PATCH ${STELLARIUM_PATCH}) SET(CPACK_PACKAGE_VERSION_PATCH ${STELLARIUM_PATCH})
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "stellarium") SET(CPACK_PACKAGE_INSTALL_DIRECTORY "stellarium")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "stellarium-${VERSION}") SET(CPACK_SOURCE_PACKAGE_FILE_NAME "stellarium-${VERSION}")
SET(CPACK_SOURCE_GENERATOR "TGZ") SET(CPACK_SOURCE_GENERATOR "TGZ")
SET(CPACK_GENERATOR "TGZ") SET(CPACK_GENERATOR "TGZ")
SET(CPACK_STRIP_FILES "bin/stellarium") SET(CPACK_STRIP_FILES "bin/stellarium")
SET(CPACK_PACKAGE_EXECUTABLES "stellarium" "Stellarium") SET(CPACK_PACKAGE_EXECUTABLES "stellarium" "Stellarium")
SET(CPACK_SOURCE_IGNORE_FILES "/CVS/" "/.svn/" "/.git/" "builds/" "Stellari um.tag$" "Stellarium.kdevelop.pcs$" "~$" "\\\\.swp$" "\\\\.#" "/#") SET(CPACK_SOURCE_IGNORE_FILES "/CVS/" "/.svn/" "/.git/" "builds/" "Stellari um.tag$" "Stellarium.kdevelop.pcs$" "~$" "\\\\.swp$" "\\\\.#" "/#")
INCLUDE(CPack) INCLUDE(CPack)
########### Macosx Bundling ###############
IF(APPLE)
ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_
PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_S
OURCE_DIR} COMMENT "making the macosx bundle." VERBATIM)
ENDIF()
########### Generate doxygen doc ############### ########### Generate doxygen doc ###############
ADD_CUSTOM_TARGET(apidoc doxygen Doxyfile WORKING_DIRECTORY ${PROJECT_SOURC E_DIR} COMMENT "Generate the doxygen documentation into the builds/doc dire ctory.") ADD_CUSTOM_TARGET(apidoc doxygen Doxyfile WORKING_DIRECTORY ${PROJECT_SOURC E_DIR} COMMENT "Generate the doxygen documentation into the builds/doc dire ctory.")
########### enable testing ########### ########### Top level include directories ###########
ENABLE_TESTING() # This will be used for all compilations in sub-directories
INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/gui
${CMAKE_SOURCE_DIR}/src/modules
${CMAKE_SOURCE_DIR}/src/planetsephems
${CMAKE_SOURCE_DIR}/src/external
${CMAKE_SOURCE_DIR}/src/scripting
${CMAKE_SOURCE_DIR}/src/external/kfilter
${CMAKE_SOURCE_DIR}/src/external/glues_stel/source/
${CMAKE_SOURCE_DIR}/src/external/glues_stel/source/libtess
${OPENGL_INCLUDE_DIR}
${ICONV_INCLUDE_DIR}
${INTL_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
${QT_INCLUDE_DIR}/QtScript
${QT_QTSCRIPT_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/src
${QT_QTTEST_INCLUDE_DIR}
${QT_DECLARATIVE_INCLUDE_DIR}
)
########### Subdirectories ############### ########### Subdirectories ###############
ADD_SUBDIRECTORY( data ) ADD_SUBDIRECTORY( data )
ADD_SUBDIRECTORY( src ) ADD_SUBDIRECTORY( src )
ADD_SUBDIRECTORY( textures ) ADD_SUBDIRECTORY( textures )
ADD_SUBDIRECTORY( doc ) ADD_SUBDIRECTORY( doc )
IF(ENABLE_NLS) IF(ENABLE_NLS)
ADD_SUBDIRECTORY( po ) ADD_SUBDIRECTORY( po )
ENDIF() ENDIF()
ADD_SUBDIRECTORY( landscapes ) ADD_SUBDIRECTORY( landscapes )
ADD_SUBDIRECTORY( skycultures ) ADD_SUBDIRECTORY( skycultures )
ADD_SUBDIRECTORY( nebulae ) ADD_SUBDIRECTORY( nebulae )
ADD_SUBDIRECTORY( scripts ) ADD_SUBDIRECTORY( scripts )
ADD_SUBDIRECTORY( stars ) ADD_SUBDIRECTORY( stars )
IF (GENERATE_PYTHON_WRAPPERS) ADD_SUBDIRECTORY( plugins )
ADD_SUBDIRECTORY( sip )
ENDIF()
########### Macosx Bundling ###############
IF(APPLE)
ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_
PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_S
OURCE_DIR} COMMENT "making the macosx bundle." VERBATIM)
ENDIF()
 End of changes. 31 change blocks. 
61 lines changed or deleted 207 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/