Prevent cmake 3.10+ warning with automoc & MILOU_EXPORT_PREVIEW

parent 310b04ea
add_definitions(-DTRANSLATION_DOMAIN=\"milou\")
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 "MILOU_EXPORT_PREVIEW")
endif()
set (lib_SRCS
preview.cpp
previewplugin.cpp
......
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