diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/lib/CMakeLists.txt | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/lib/CMakeLists.txt')
-rw-r--r-- | app/lib/CMakeLists.txt | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/app/lib/CMakeLists.txt b/app/lib/CMakeLists.txt index 5f271f6..c25c149 100644 --- a/app/lib/CMakeLists.txt +++ b/app/lib/CMakeLists.txt @@ -6,17 +6,37 @@ # project(lib) -add_subdirectory(demos) -add_subdirectory(examples) add_subdirectory(params) install(FILES COPYING logo.bmp xtrkcad.xtq + 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" ) @@ -37,16 +57,21 @@ 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) install(PROGRAMS - xdg-open + xdg-open xtrkcad-setup DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR} ) install(FILES - xtrkcad.desktop + 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 |