mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Install the keepassx binary and database icons.
This commit is contained in:
parent
ccdeadfd2a
commit
752c720226
@ -50,6 +50,17 @@ else( APPLE OR MINGW )
|
|||||||
set( PROGNAME keepassx )
|
set( PROGNAME keepassx )
|
||||||
endif( APPLE OR MINGW )
|
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 )
|
if( WITH_TESTS )
|
||||||
enable_testing()
|
enable_testing()
|
||||||
endif( WITH_TESTS )
|
endif( WITH_TESTS )
|
||||||
@ -82,6 +93,7 @@ endif(NOT ZLIB_SUPPORTS_GZIP)
|
|||||||
include_directories(${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
include_directories(${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(share)
|
||||||
add_subdirectory(utils)
|
add_subdirectory(utils)
|
||||||
if( WITH_TESTS )
|
if( WITH_TESTS )
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
18
share/CMakeLists.txt
Normal file
18
share/CMakeLists.txt
Normal 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)
|
@ -104,3 +104,4 @@ add_library( keepassx_core STATIC ${keepassx_SOURCES} )
|
|||||||
|
|
||||||
add_executable( ${PROGNAME} WIN32 MACOSX_BUNDLE main.cpp )
|
add_executable( ${PROGNAME} WIN32 MACOSX_BUNDLE main.cpp )
|
||||||
target_link_libraries( ${PROGNAME} keepassx_core ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${GCRYPT_LIBRARIES} ${ZLIB_LIBRARIES} )
|
target_link_libraries( ${PROGNAME} keepassx_core ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${GCRYPT_LIBRARIES} ${ZLIB_LIBRARIES} )
|
||||||
|
install(TARGETS ${PROGNAME} DESTINATION ${BIN_INSTALL_DIR})
|
||||||
|
Loading…
Reference in New Issue
Block a user