aboutsummaryrefslogtreecommitdiff
path: root/vendor.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vendor.cmake')
-rw-r--r--vendor.cmake27
1 files changed, 18 insertions, 9 deletions
diff --git a/vendor.cmake b/vendor.cmake
index 0e59149..45a9f7e 100644
--- a/vendor.cmake
+++ b/vendor.cmake
@@ -1,16 +1,25 @@
-# Build configuration
-
-# install paths
-set(BINARY_DESTINATION bin)
+## Build configuration
+# Feel free to copy this file and change settings as you need. To use your own
+# variant, use -DVENDOR=<path to your vendor.cmake> when generating the build
+# script.
+
+## Naming
+# Executable name
+set(poi_exe poi)
+# Application name
+set(poi_name "smolbote")
+
+## Install Paths
+# Binaries will be installed to ${CMAKE_INSTALL_PREFIX}/${installPath_bin}
+set(installPath_bin bin)
+
+# Plugins will be installed to ${CMAKE_INSTALL_PREFIX}/${installPath_plugin}
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- set(PLUGIN_DESTINATION bin/plugins)
+ set(installPath_plugin bin/plugins)
else()
- set(PLUGIN_DESTINATION lib/smolbote)
+ set(installPath_plugin lib/smolbote)
endif()
-# executable name
-set(poi_NAME poi)
-
# version information
if (EXISTS "${PROJECT_SOURCE_DIR}/.git")
execute_process(COMMAND git rev-list --count HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE VerRevision OUTPUT_STRIP_TRAILING_WHITESPACE)