-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from PureTryOut/cmake
Port to CMake
- Loading branch information
Showing
71 changed files
with
93 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cmake_minimum_required(VERSION 3.1.0) | ||
|
||
project(glacier-settings | ||
VERSION 0.0.12 | ||
DESCRIPTION "The Glacier settings application") | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
include(FeatureSummary) | ||
include(GNUInstallDirs) | ||
|
||
set(QT_MIN_VERSION "5.6.0") | ||
find_package(Qt5 COMPONENTS Qml Quick Positioning LinguistTools REQUIRED) | ||
find_package(Glacier COMPONENTS App REQUIRED) | ||
|
||
add_subdirectory(src) | ||
|
||
# Translations | ||
file(GLOB TS_FILES translations/*.ts) | ||
#set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_INSTALL_LOCALEDIR}) | ||
qt5_add_translation(QM_FILES ${TS_FILES}) | ||
add_custom_target(translations DEPENDS ${QM_FILES}) | ||
add_dependencies(glacier-settings translations) | ||
|
||
install(FILES ${QM_FILES} | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/translations) | ||
|
||
install(FILES glacier-settings.desktop | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications) | ||
install(FILES data/org.nemomobile.qmlsettings.service | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/services) | ||
install(FILES glacier-settings.privileges | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mapplauncherd/privileges.d) | ||
install(FILES glacier-settings.png | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings) | ||
|
||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
set(SRC | ||
main.cpp | ||
models/imagesmodel.cpp | ||
models/imagesmodel.h | ||
models/satellitemodel.cpp | ||
models/satellitemodel.h | ||
models/settingsmodel.cpp | ||
models/settingsmodel.h) | ||
set(QML_PLUGINS | ||
qml/plugins/example/example.json | ||
qml/plugins/bluez/bluez.json | ||
qml/plugins/developermode/developermode.json | ||
qml/plugins/display/display.json | ||
qml/plugins/datetime/datetime.json | ||
qml/plugins/wifi/wifi.json | ||
qml/plugins/gps/gps.json | ||
qml/plugins/nfc/nfc.json | ||
qml/plugins/language/language.json | ||
qml/plugins/about/about.json | ||
qml/plugins/keyboard/keyboard.json | ||
qml/plugins/usb/usb.json | ||
qml/plugins/devicelock/devicelock.json | ||
qml/plugins/mobile/mobile.json | ||
qml/plugins/powersave/powersave.json) | ||
|
||
qt5_create_translation(QT_FILES ${SRC}) | ||
|
||
add_executable(glacier-settings ${SRC} ${QT_FILES}) | ||
|
||
target_link_libraries(glacier-settings | ||
Qt5::Qml | ||
Qt5::Quick | ||
Qt5::Positioning | ||
Glacier::App) | ||
install(TARGETS glacier-settings RUNTIME | ||
DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
install(FILES ${QML_PLUGINS} | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings/plugins) | ||
install(DIRECTORY qml | ||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-settings | ||
PATTERN "*.json" EXCLUDE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes