File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5.1...4.1.0)
22project (blockattack)
3+
4+ if (NOT CMAKE_BUILD_TYPE )
5+ set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
6+ endif ()
7+
38set (BIN_DIR ${blockattack_SOURCE_DIR} /Game)
49
510SET (CPACK_PACKAGE_VERSION "2.11.0-SNAPSHOT" )
@@ -8,7 +13,6 @@ SET(CPACK_PACKAGE_VERSION_MINOR "11")
813SET (CPACK_PACKAGE_VERSION_PATCH "0" )
914SET (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Block Attack - Rise of the Blocks ${CPACK_PACKAGE_VERSION} " )
1015SET (CPACK_PACKAGE_VENDOR "Poul Sander" )
11- INCLUDE (CPack)
1216
1317# Define install paths
1418set (INSTALL_BIN_DIR "bin" CACHE STRING "Install executable in this directory" )
@@ -153,6 +157,7 @@ endif()
153157set_target_properties (blockattack PROPERTIES RUNTIME_OUTPUT_DIRECTORY Game)
154158
155159#Installing
160+ include (CPack)
156161install (TARGETS blockattack RUNTIME DESTINATION ${INSTALL_BIN_DIR} )
157162install (FILES Game/blockattack.data DESTINATION ${INSTALL_DATA_DIR} )
158163install (FILES Game/mods/1.3.0.bricks.data DESTINATION "${INSTALL_DATA_DIR} /mods" )
You can’t perform that action at this time.
0 commit comments