aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-02-25 21:11:02 +0100
committerNao Pross <naopross@thearcway.org>2018-02-25 21:11:02 +0100
commitbe6642dc096842f0531c7687cf06f15fd1d0ccd6 (patch)
treeb7c81d15936e29087f8ec0c0df1c5d334817b0a0
parentFix all warnings (errors with -Werror) (diff)
downloadSubconscious-old-be6642dc096842f0531c7687cf06f15fd1d0ccd6.tar.gz
Subconscious-old-be6642dc096842f0531c7687cf06f15fd1d0ccd6.zip
Update CMakeLists and Makefile
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt11
-rw-r--r--Makefile17
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)
diff --git a/Makefile b/Makefile
index 88e31ec..869ecf0 100644
--- a/Makefile
+++ b/Makefile
@@ -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 .