summaryrefslogtreecommitdiff
path: root/assets/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'assets/cpp')
-rw-r--r--assets/cpp/CMakeLists.txt9
-rw-r--r--assets/cpp/version.cpp26
2 files changed, 0 insertions, 35 deletions
diff --git a/assets/cpp/CMakeLists.txt b/assets/cpp/CMakeLists.txt
deleted file mode 100644
index 52fe17c..0000000
--- a/assets/cpp/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-# Version
-add_executable(version version.cpp)
-target_compile_definitions(version PRIVATE
- PROJECT_NAME="${PROJECT_NAME}"
- VERSION="${VERSION}"
- GIT_REVISION="${GIT_REVISION}"
- DISTRIBUTOR="${DISTRIBUTOR}"
-)
-install(TARGETS version DESTINATION ${INSTALL_LIBDIR})
diff --git a/assets/cpp/version.cpp b/assets/cpp/version.cpp
deleted file mode 100644
index e1a0cf3..0000000
--- a/assets/cpp/version.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <iostream>
-
-int main(int argc, char* argv[]) {
- if (argc > 1) {
- std::string arg = argv[1];
-
- if (arg == "-t" || arg == "--terse") {
- std::cout << PROJECT_NAME << std::endl;
- std::cout << VERSION << std::endl;
- std::cout << GIT_REVISION << std::endl;
- std::cout << DISTRIBUTOR << std::endl;
- } else if (arg == "-s" || arg == "--short") {
- std::cout << PROJECT_NAME << " " << VERSION << ", revision " << GIT_REVISION << ", distrubuted by: " << DISTRIBUTOR << std::endl;
- } else {
- std::cout << "Usage: " << argv[0] << " [-t | --terse] [-s | --short]" << std::endl;
- return arg != "-h" && arg != "--help";
- }
- } else {
- std::cout << "Project: " << PROJECT_NAME << std::endl;
- std::cout << "Version: " << VERSION << std::endl;
- std::cout << "Git revision: " << GIT_REVISION << std::endl;
- std::cout << "Distributor: " << DISTRIBUTOR << std::endl;
- }
-
- return 0;
-}