diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
commit | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (patch) | |
tree | e469179df67a0e0db49161a43cbf8076a189f6f4 /app/lib/CMakeLists.txt | |
parent | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (diff) |
New upstream version 5.3.0GAupstream/5.3.0GAupstream
Diffstat (limited to 'app/lib/CMakeLists.txt')
-rw-r--r-- | app/lib/CMakeLists.txt | 34 |
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 |