Prevent cmake 3.10+ warning with automoc & K_EXPORT_PLASMA_GEOLOCATIONPROVIDER

wilder-5.14
Friedrich W. H. Kossebau 8 years ago
parent b0d12d435f
commit cd3d63f43d
  1. 6
      dataengines/geolocation/CMakeLists.txt

@ -1,3 +1,9 @@
if(NOT CMAKE_VERSION VERSION_LESS "3.10.0")
# CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros.
# 3.10+ lets us provide more macro names that require automoc.
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES K_EXPORT_PLASMA_GEOLOCATIONPROVIDER)
endif()
set(plasma_geolocation_interface_SRCS geolocationprovider.cpp)
add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS})
target_link_libraries(plasma-geolocation-interface

Loading…
Cancel
Save