Install the keepassx binary and database icons.

This commit is contained in:
Felix Geyer 2011-12-29 23:50:22 +01:00
parent ccdeadfd2a
commit 752c720226
3 changed files with 31 additions and 0 deletions

View File

@ -50,6 +50,17 @@ else( APPLE OR MINGW )
set( PROGNAME keepassx )
endif( APPLE OR MINGW )
if(MINGW)
set(BIN_INSTALL_DIR "")
set(DATA_INSTALL_DIR "share")
elseif(APPLE)
set(BIN_INSTALL_DIR "")
set(DATA_INSTALL_DIR "Contents/Resources")
else(MINGW)
set(BIN_INSTALL_DIR "bin")
set(DATA_INSTALL_DIR "share/keepassx")
endif( MINGW )
if( WITH_TESTS )
enable_testing()
endif( WITH_TESTS )
@ -82,6 +93,7 @@ endif(NOT ZLIB_SUPPORTS_GZIP)
include_directories(${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
add_subdirectory(src)
add_subdirectory(share)
add_subdirectory(utils)
if( WITH_TESTS )
add_subdirectory(tests)

18
share/CMakeLists.txt Normal file
View File

@ -0,0 +1,18 @@
# Copyright (C) 2011 Felix Geyer <debfx@fobos.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 or (at your option)
# version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
file(GLOB DATABASE_ICONS icons/database/*.png)
install(FILES ${DATABASE_ICONS} DESTINATION ${DATA_INSTALL_DIR}/icons/database)

View File

@ -104,3 +104,4 @@ add_library( keepassx_core STATIC ${keepassx_SOURCES} )
add_executable( ${PROGNAME} WIN32 MACOSX_BUNDLE main.cpp )
target_link_libraries( ${PROGNAME} keepassx_core ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${GCRYPT_LIBRARIES} ${ZLIB_LIBRARIES} )
install(TARGETS ${PROGNAME} DESTINATION ${BIN_INSTALL_DIR})