| 1 |
qt_add_resources(POSITION_RESOURCES position.qrc) |
| 2 |
|
| 3 |
add_library( |
| 4 |
qtposition_lomiri SHARED |
| 5 |
|
| 6 |
core_geo_position_info_source.h |
| 7 |
core_geo_position_info_source_factory.h |
| 8 |
|
| 9 |
core_geo_position_info_source.cpp |
| 10 |
core_geo_position_info_source_factory.cpp |
| 11 |
|
| 12 |
${POSITION_RESOURCES} |
| 13 |
) |
| 14 |
|
| 15 |
target_compile_definitions(qtposition_lomiri PRIVATE QT_NO_KEYWORDS) |
| 16 |
|
| 17 |
# Ideally, we would read the plugin installation location from cmake |
| 18 |
# but this does not work currently. |
| 19 |
set(PLUGIN_INSTALL_LOCATION "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/plugins/position") |
| 20 |
# get_target_property(PLUGIN_LOCATION Qt5::Location PLUGIN_LOCATION) |
| 21 |
|
| 22 |
message(STATUS "Installing Qt location plugin to: ${PLUGIN_INSTALL_LOCATION}") |
| 23 |
|
| 24 |
target_link_libraries( |
| 25 |
qtposition_lomiri |
| 26 |
|
| 27 |
${CMAKE_THREAD_LIBS_INIT} |
| 28 |
|
| 29 |
Qt${QT_VERSION_MAJOR}::Core |
| 30 |
Qt${QT_VERSION_MAJOR}::Gui |
| 31 |
Qt${QT_VERSION_MAJOR}::Location |
| 32 |
|
| 33 |
lomiri-location-service |
| 34 |
${DBUS_CPP_LDFLAGS} |
| 35 |
) |
| 36 |
|
| 37 |
install( |
| 38 |
TARGETS qtposition_lomiri |
| 39 |
LIBRARY DESTINATION ${PLUGIN_INSTALL_LOCATION}) |