Commit bb18f5ce authored by Marcos CARDINOT's avatar Marcos CARDINOT

add app icons + cosmetic fixes

parent 6bb15848
......@@ -18,12 +18,12 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE
find_package(Qt5 5.4 REQUIRED COMPONENTS Gui Qml Quick Xml Sql Svg Network PrintSupport)
include(ECMInstallIcons)
include(ECMAddAppIcon)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(FeatureSummary)
include(ECMAddAppIcon)
# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS
......
......@@ -557,7 +557,13 @@ endif(INDI_FOUND)
kconfig_add_kcfg_files(kstars_SRCS ${kstars_KCFG_SRCS})
ki18n_wrap_ui(kstars_SRCS
${indiui_SRCS} ${ui_SRCS} ${fitsui_SRCS} ${ekosui_SRCS} ${xplanetui_SRCS} ${kstars_optionsui_SRCS} ${kstars_dialogsui_SRCS}
${indiui_SRCS}
${ui_SRCS}
${fitsui_SRCS}
${ekosui_SRCS}
${xplanetui_SRCS}
${kstars_optionsui_SRCS}
${kstars_dialogsui_SRCS}
${printingui_SRCS}
auxiliary/thumbnailpicker.ui
auxiliary/thumbnaileditor.ui
......@@ -567,8 +573,7 @@ ki18n_wrap_ui(kstars_SRCS
skycomponents/notifyupdatesui.ui
)
add_executable(kstars main.cpp)
add_library( KStarsLib STATIC ${kstars_SRCS})
add_library(KStarsLib STATIC ${kstars_SRCS})
target_link_libraries(KStarsLib
LibKSDataHandlers
......@@ -619,6 +624,20 @@ endif(WCSLIB_FOUND)
# )
#endif( OPENGL_FOUND )
set (KSTARS_APP_SRCS
main.cpp
)
# add icon to application sources
ecm_add_app_icon(KSTARS_APP_SRCS ICONS
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kstars.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kstars.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kstars.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kstars.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kstars.png
)
add_executable(kstars ${KSTARS_APP_SRCS})
target_link_libraries(kstars KStarsLib)
install(TARGETS kstars ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
ecm_install_icons(
ICONS
16-apps-kstars.png
32-apps-kstars.png
48-apps-kstars.png
64-apps-kstars.png
128-apps-kstars.png
sc-apps-kstars.svgz
22-actions-kstars_cbound.png
22-actions-kstars_clines.png
22-actions-kstars_cnames.png
......
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