CMakeLists.txt
changeset 584 f381705f1aeb
parent 546 0e7cc3fb05cd
child 605 2651c3fe4567
equal deleted inserted replaced
583:f7bc4bee2850 584:f381705f1aeb
    14 add_subdirectory(bin)
    14 add_subdirectory(bin)
    15 add_subdirectory(QTfrontend)
    15 add_subdirectory(QTfrontend)
    16 add_subdirectory(hedgewars)
    16 add_subdirectory(hedgewars)
    17 add_subdirectory(share)
    17 add_subdirectory(share)
    18 
    18 
       
    19 # CPack vars
       
    20 
    19 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
    21 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")
    20 set(CPACK_PACKAGE_VENDOR "Hedgewars")
    22 set(CPACK_PACKAGE_VENDOR "Hedgewars")
    21 set(CPACK_PACKAGE_VERSION_MAJOR "0")
    23 set(CPACK_PACKAGE_VERSION_MAJOR "0")
    22 set(CPACK_PACKAGE_VERSION_MINOR "9")
    24 set(CPACK_PACKAGE_VERSION_MINOR "9")
    23 set(CPACK_PACKAGE_VERSION_PATCH "0")
    25 set(CPACK_PACKAGE_VERSION_PATCH "0")
    24 set(CPACK_PACKAGE_FILE_NAME "hedgewars-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    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}")
    25 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
    28 set(CPACK_PACKAGE_EXECUTABLES "hedgewars" "hedgewars")
    26 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
    29 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
    27 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    30 set(CPACK_PACKAGE_INSTALL_DIRECTORY "Hedgewars ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    28 
    31 
    29 if(WIN32 AND NOT UNIX)
    32 if(WIN32 AND NOT UNIX)
    34 	set(CPACK_NSIS_MODIFY_PATH ON)
    37 	set(CPACK_NSIS_MODIFY_PATH ON)
    35 else(WIN32 AND NOT UNIX)
    38 else(WIN32 AND NOT UNIX)
    36 	set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine")
    39 	set(CPACK_STRIP_FILES "bin/hedgewars;bin/hwengine")
    37 endif(WIN32 AND NOT UNIX)
    40 endif(WIN32 AND NOT UNIX)
    38 
    41 
       
    42 set(CPACK_SOURCE_IGNORE_FILES
       
    43 	"~"
       
    44 	"\\\\.svn"
       
    45 	"\\\\.exe$"
       
    46 	"\\\\.a$"
       
    47 	"\\\\.dll$"
       
    48 	"\\\\.xcf$"
       
    49 	"\\\\.cxx$"
       
    50 	"\\\\.db$"
       
    51 	"\\\\.cfg$"
       
    52 	"\\\\.dof$"
       
    53 	"\\\\.cmake$"
       
    54 	"\\\\.layout$"
       
    55 	"\\\\.zip$"
       
    56 	"\\\\.gz$"
       
    57 	"\\\\.bz2$"
       
    58 	"Makefile"
       
    59 	"CMakeFiles"
       
    60 	"debug"
       
    61 	"release"
       
    62 	"Debug$"
       
    63 	"Release$"
       
    64 	"proto.inc$"
       
    65 	"hwconsts.cpp$"
       
    66 	"playlist.inc$"
       
    67 	"^${PROJECT_SOURCE_DIR}/bin/."
       
    68 	"^${PROJECT_SOURCE_DIR}/tools"
       
    69 	"^${PROJECT_SOURCE_DIR}/docs"
       
    70 	"^${PROJECT_SOURCE_DIR}/Graphics"
       
    71 	"^${PROJECT_SOURCE_DIR}/realtest"
       
    72 	"^${PROJECT_SOURCE_DIR}/tmp"
       
    73 	"^${PROJECT_SOURCE_DIR}/utils"
       
    74 	"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Maps/test"
       
    75 	"^${PROJECT_SOURCE_DIR}/share/hedgewars/Data/Themes/ethereal"
       
    76 	"^${PROJECT_SOURCE_DIR}/install_manifest.txt"
       
    77 	"^${PROJECT_SOURCE_DIR}/CMakeCache.txt"
       
    78 	"^${PROJECT_SOURCE_DIR}/install_manifest.txt"
       
    79 )
       
    80 
    39 include(CPack)
    81 include(CPack)
    40