summaryrefslogtreecommitdiff
path: root/app/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:36 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:36 +0200
commitb6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (patch)
tree9804282102f8c40d27407b9c94119b35eeb5013c /app/lib/CMakeLists.txt
parentc9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff)
parenta14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff)
Update upstream source from tag 'upstream/5.3.0GA'
Update to upstream version '5.3.0GA' with Debian dir dfd14d63b0238e276ade6f54dd9100325df5b2f9
Diffstat (limited to 'app/lib/CMakeLists.txt')
-rw-r--r--app/lib/CMakeLists.txt34
1 files changed, 29 insertions, 5 deletions
diff --git a/app/lib/CMakeLists.txt b/app/lib/CMakeLists.txt
index 54c4606..c25c149 100644
--- a/app/lib/CMakeLists.txt
+++ b/app/lib/CMakeLists.txt
@@ -6,8 +6,6 @@
#
project(lib)
-add_subdirectory(demos)
-add_subdirectory(examples)
add_subdirectory(params)
install(FILES
@@ -17,7 +15,28 @@ install(FILES
xtrkcad.upd
DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
)
-
+
+# install parameter files
+install(DIRECTORY params
+ DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
+ FILES_MATCHING
+ PATTERN "*.xtp")
+
+# install demos
+install(DIRECTORY demos
+ DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
+ FILES_MATCHING
+ PATTERN "*.xtr")
+
+# install example layouts
+install(DIRECTORY examples
+ DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
+ FILES_MATCHING
+ PATTERN "*.xtc")
+
+# install release documentation Readme and CHANGELOG
+# depends on pandoc
+#
set( infile "${CMAKE_CURRENT_SOURCE_DIR}/Readme.md" )
set( outfile "${CMAKE_CURRENT_BINARY_DIR}/Readme.txt" )
set( changelogin "${CMAKE_CURRENT_SOURCE_DIR}/CHANGELOG.md" )
@@ -38,7 +57,7 @@ if(PANDOC_FOUND)
DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
)
else()
- message(STATUS "Pandoc is not available on this system, Readme.txt is not generated!")
+ message(STATUS "Pandoc is not available on this system, Readme.txt and CHANGELOG.txt are not generated!")
endif()
if(UNIX AND NOT APPLE)
@@ -47,7 +66,12 @@ if(UNIX AND NOT APPLE)
DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}
)
install(FILES
- xtrkcad.desktop xtrkcad.xml
+ xtrkcad${XTRKCAD_BETA}.desktop
+ DESTINATION "${XTRKCAD_SHARE_INSTALL_DIR}/applications"
+ RENAME xtrkcad.desktop
+ )
+ install(FILES
+ xtrkcad.xml
DESTINATION "${XTRKCAD_SHARE_INSTALL_DIR}/applications"
)
install(FILES