Commit 0d864e4b authored by Johnny Jazeix's avatar Johnny Jazeix Committed by Torsten Rahn
Browse files

update Windows path for building/packaging with Craft

parent a8b9ffe0
......@@ -183,7 +183,7 @@ endif()
# Detect default for the user configurable MARBLE_DATA_PATH option
if(WIN32)
set(data_dir data)
set(data_dir ../data)
set(locale_dir "${data_dir}/locale")
set(plugin_dir plugins)
elseif(APPLE)
......
......@@ -61,13 +61,8 @@ install( TARGETS ${_target_name} DESTINATION ${QT_PLUGINS_DIR}/designer )
endmacro( marble_add_designer_plugin _target_name )
if( WIN32 )
set( DATA_PATH ${CMAKE_INSTALL_PREFIX}/${MARBLE_DATA_PATH} )
set( PLUGIN_PATH ${CMAKE_INSTALL_PREFIX}/${MARBLE_PLUGIN_PATH} )
else( WIN32 )
set( DATA_PATH ${MARBLE_DATA_PATH} )
set( PLUGIN_PATH ${MARBLE_PLUGIN_PATH} )
endif( WIN32 )
set( DATA_PATH ${MARBLE_DATA_PATH} )
set( PLUGIN_PATH ${MARBLE_PLUGIN_PATH} )
macro( marble_add_test TEST_NAME )
if( BUILD_MARBLE_TESTS )
......
......@@ -47,15 +47,9 @@ if(STATIC_BUILD AND WIN32)
target_link_libraries(marble-qt ${QT_PLUGINS_DIR}/imageformats/qsvg.lib)
endif()
if(WIN32)
install (TARGETS marble-qt RUNTIME DESTINATION .)
else(WIN32)
if (APPLE)
# No need for this when installing to a bundle
else (APPLE)
if (NOT APPLE)
install (TARGETS marble-qt RUNTIME DESTINATION bin )
endif (APPLE)
endif(WIN32)
endif (NOT APPLE)
if(APPS_INSTALL_DIR)
install(PROGRAMS org.kde.marble-qt.desktop DESTINATION ${APPS_INSTALL_DIR})
......
......@@ -103,9 +103,8 @@ int main(int argc, char *argv[])
// plugins. In mac be sure to look in the
// application bundle...
#ifdef Q_WS_WIN
QApplication::addLibraryPath( QApplication::applicationDirPath()
+ QDir::separator() + QLatin1String("plugins"));
#ifdef Q_OS_WIN
QApplication::addLibraryPath( QApplication::applicationDirPath() );
#endif
#ifdef Q_OS_MACX
QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus);
......
......@@ -50,7 +50,7 @@ target_include_directories(astro
# choose the correct target install library path
if(WIN32)
INSTALL(TARGETS astro EXPORT AstroTargets RUNTIME DESTINATION . ARCHIVE DESTINATION lib)
INSTALL(TARGETS astro EXPORT AstroTargets RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
elseif(APPLE)
INSTALL(TARGETS astro LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib)
else()
......
......@@ -448,7 +448,7 @@ target_include_directories(marblewidget
# choose the correct target install library path
if(WIN32)
install(TARGETS marblewidget EXPORT MarbleTargets RUNTIME DESTINATION . ARCHIVE DESTINATION lib)
install(TARGETS marblewidget EXPORT MarbleTargets RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
elseif(APPLE)
install(TARGETS marblewidget LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib)
else()
......
......@@ -53,7 +53,7 @@ if(Qt5Positioning_FOUND)
endif()
if(WIN32)
install(TARGETS marbledeclarative RUNTIME DESTINATION . ARCHIVE DESTINATION lib)
install(TARGETS marbledeclarative RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
else()
install(TARGETS marbledeclarative LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment