diff options
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 |