CMakeLists.txt
changeset 907 a5b0b93a39c8
parent 904 a573c949e61c
child 1016 52c7981594f6
equal deleted inserted replaced
906:1cc10dde304c 907:a5b0b93a39c8
     1 project(hedgewars)
     1 project(hedgewars)
     2 
     2 
     3 cmake_minimum_required(VERSION 2.4.4 FATAL_ERROR)
     3 cmake_minimum_required(VERSION 2.4.4 FATAL_ERROR)
       
     4 
       
     5 set(CPACK_PACKAGE_VERSION_MAJOR "0")
       
     6 set(CPACK_PACKAGE_VERSION_MINOR "9")
       
     7 set(CPACK_PACKAGE_VERSION_PATCH "4-dev")
     4 
     8 
     5 if(DEFINED DATA_INSTALL_DIR)
     9 if(DEFINED DATA_INSTALL_DIR)
     6 	set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
    10 	set(SHAREPATH ${DATA_INSTALL_DIR}/hedgewars/)
     7 else(DEFINED DATA_INSTALL_DIR)
    11 else(DEFINED DATA_INSTALL_DIR)
     8 	set(SHAREPATH share/hedgewars/)
    12 	set(SHAREPATH share/hedgewars/)
     9 endif(DEFINED DATA_INSTALL_DIR)
    13 endif(DEFINED DATA_INSTALL_DIR)
    10 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    14 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    11 
    15 
       
    16 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    12 set(HEDGEWARS_PROTO_VER 11)
    17 set(HEDGEWARS_PROTO_VER 11)
    13 
    18 
    14 add_subdirectory(bin)
    19 add_subdirectory(bin)
    15 add_subdirectory(QTfrontend)
    20 add_subdirectory(QTfrontend)
    16 add_subdirectory(hedgewars)
    21 add_subdirectory(hedgewars)
    18 
    23 
    19 # CPack vars
    24 # CPack vars
    20 
    25 
    21 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
    26 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
    22 set(CPACK_PACKAGE_VENDOR "Hedgewars")
    27 set(CPACK_PACKAGE_VENDOR "Hedgewars")
    23 set(CPACK_PACKAGE_VERSION_MAJOR "0")
    28 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${HEDGEWARS_VERSION}")
    24 set(CPACK_PACKAGE_VERSION_MINOR "9")
    29 set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${HEDGEWARS_VERSION}")
    25 set(CPACK_PACKAGE_VERSION_PATCH "3")
       
    26 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
       
    27 set(CPACK_SOURCE_PACKAGE_FILE_NAME "hedgewars-src-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
       
    28 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
    30 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
    29 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
    31 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
    30 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    32 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${HEDGEWARS_VERSION}")
    31 
    33 
    32 if(WIN32 AND NOT UNIX)
    34 if(WIN32 AND NOT UNIX)
    33 	set(CPACK_NSIS_DISPLAY_NAME "Hedgewars, a turn-based Worms-like strategy") 
    35 	set(CPACK_NSIS_DISPLAY_NAME "Hedgewars, a turn-based Worms-like strategy") 
    34 	set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
    36 	set(CPACK_NSIS_HELP_LINK "http://www.hedgewars.org/")
    35 	set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
    37 	set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")