From 77bbe6b66414ba63bb43993e7a58c07e839bccbc Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 2 Oct 2014 08:34:21 +0200 Subject: [PATCH] Servatrice: install example ini and sql schema file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WIN: in the binary directory OSX: in the app bundle’s Resources subdirectory LINUX: in $PREFIX/share/servatrice --- servatrice/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servatrice/CMakeLists.txt b/servatrice/CMakeLists.txt index 925e96110..224e10d22 100644 --- a/servatrice/CMakeLists.txt +++ b/servatrice/CMakeLists.txt @@ -88,12 +88,18 @@ endif() if(UNIX) if(APPLE) INSTALL(TARGETS servatrice BUNDLE DESTINATION ./) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.ini.example DESTINATION ./servatrice.app/Contents/Resources/) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.sql DESTINATION ./servatrice.app/Contents/Resources/) else() # Assume linux INSTALL(TARGETS servatrice RUNTIME DESTINATION bin/) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.ini.example DESTINATION share/servatice/) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.sql DESTINATION share/servatice/) endif() elseif(WIN32) INSTALL(TARGETS servatrice RUNTIME DESTINATION ./) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.ini.example DESTINATION ./) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/servatrice.sql DESTINATION ./) endif() if(APPLE)