]> git.donarmstrong.com Git - flightcrew.git/blob - CMakeLists.txt
replace debian/copyright which snuck in from the sigil package
[flightcrew.git] / CMakeLists.txt
1 ########################################################\r
2 #  \r
3 #  This is a CMake configuration file.\r
4 #  To use it you need CMake which can be \r
5 #  downloaded from here: \r
6 #    http://www.cmake.org/cmake/resources/software.html\r
7 #\r
8 #########################################################\r
9 \r
10 cmake_minimum_required( VERSION 2.8 ) \r
11 \r
12 project( FlightCrew )\r
13 \r
14 set( CMAKE_DEBUG_POSTFIX "d" )\r
15 set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )\r
16 set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib )\r
17 set( PACKAGE_DIRECTORY ${PROJECT_BINARY_DIR}/package )\r
18 \r
19 set( FLIGHTCREW_MAJOR_VERSION 0 )\r
20 set( FLIGHTCREW_MINOR_VERSION 7 )\r
21 set( FLIGHTCREW_REVISION_VERSION 2 )\r
22 set( FLIGHTCREW_FULL_VERSION ${FLIGHTCREW_MAJOR_VERSION}.${FLIGHTCREW_MINOR_VERSION}.${FLIGHTCREW_REVISION_VERSION} )\r
23 \r
24 # Check if platform is 64 bit\r
25 if( NOT APPLE )\r
26    if( CMAKE_SIZEOF_VOID_P EQUAL 4 )\r
27      set( 64_BIT_PLATFORM 0 )\r
28    else()\r
29      set( 64_BIT_PLATFORM 1 )\r
30    endif()\r
31 endif()\r
32 \r
33 # We need this to make sure g++ and the linker\r
34 # create exes that can run on 10.6+\r
35 set( CMAKE_OSX_DEPLOYMENT_TARGET "10.6" )\r
36 \r
37 # 10.6 is the required minimum OS X version.\r
38 set( CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" )\r
39 \r
40 # Universal builds for mac\r
41 set( CMAKE_OSX_ARCHITECTURES "i386;x86_64" )\r
42 \r
43 # The parsing order is significant!\r
44 add_subdirectory( src/BoostParts )\r
45 add_subdirectory( src/Xerces )\r
46 add_subdirectory( src/XercesExtensions )\r
47 add_subdirectory( src/zlib )\r
48 add_subdirectory( src/zipios )\r
49 add_subdirectory( src/googlemock )\r
50 add_subdirectory( src/FlightCrew )\r
51 add_subdirectory( src/FlightCrew-cli )\r
52 \r
53 if( NOT SKIP_FC_GUI )\r
54     add_subdirectory( src/FlightCrew-gui )\r
55 endif()\r