Fix data path on Mac OS.

This commit is contained in:
Felix Geyer 2012-05-21 17:55:09 +02:00
parent bde397503e
commit ca7c59d313
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ if(MINGW)
set(DATA_INSTALL_DIR "share") set(DATA_INSTALL_DIR "share")
elseif(APPLE) elseif(APPLE)
set(BIN_INSTALL_DIR "") set(BIN_INSTALL_DIR "")
set(DATA_INSTALL_DIR "Contents/Resources") set(DATA_INSTALL_DIR "${PROGNAME}.app/Contents/Resources")
else(MINGW) else(MINGW)
set(BIN_INSTALL_DIR "bin") set(BIN_INSTALL_DIR "bin")
set(DATA_INSTALL_DIR "share/keepassx") set(DATA_INSTALL_DIR "share/keepassx")

View File

@ -147,5 +147,5 @@ 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} install(TARGETS ${PROGNAME}
BUNDLE DESTINATION . BUNDLE DESTINATION . COMPONENT Runtime
RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT Runtime) RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT Runtime)

View File

@ -68,7 +68,7 @@ DataPath::DataPath()
} }
#endif #endif
#ifdef Q_WS_MAC #ifdef Q_WS_MAC
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources/keepassx")) { else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources")) {
} }
#endif #endif
#ifdef Q_WS_WIN #ifdef Q_WS_WIN