3 find_package(Qt5 REQUIRED COMPONENTS Core)
5 # Detect `-NOTFOUND` libraries at generate time.
6 cmake_policy(SET CMP0111 NEW)
8 add_executable(imported::executable IMPORTED)
9 add_library(imported::shared SHARED IMPORTED)
10 add_library(imported::static STATIC IMPORTED)
11 add_library(imported::unknown UNKNOWN IMPORTED)
12 add_library(imported::interface INTERFACE IMPORTED)
13 add_library(imported::module MODULE IMPORTED)
15 function (set_location target name loc)
16 set_property(TARGET "imported::${target}" PROPERTY
17 "IMPORTED_${name}" "${loc}")
24 target_link_libraries(automoc
30 add_dependencies(automoc