diff options
-rw-r--r-- | CMakeLists.txt | 11 | ||||
-rw-r--r-- | Makefile | 17 |
2 files changed, 18 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 98b9ba1..16dd487 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,18 @@ install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin) # CPack packaging include(InstallRequiredSystemLibraries) + +set(CMAKE_PACKAGE_NAME "subconcious") + +set(CPACK_GENERATOR "DEB;ZIP;TGZ;STGZ") + # set(CPACK_RESOURCES_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") set(CPACK_PACKAGE_VERSION_MAJOR "${subconscious_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${subconscious_VERSION_MINOR}") + +# debian package +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") +set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Nao Pross <naopross@thearcway.org>") +set(CPACK_PACKAGE_DEBIAN_DESCRIPTION "RPG game") + include(CPack) @@ -1,17 +1,14 @@ -all: runcpp +all: cmake -java: - gradle compileJava - -runjava: java - gradle run +run: + build/subconscious -cpp: +cmake: cmake --build build -- $(filter-out $@,$(MAKECMDGOALS)) -runcpp: cpp - ./build/exe/main/main - +gradle: + gradle compileJava + gradle run tags: ctags --extra=+f --exclude=src/main/java -R . |