blob: 8fa6041b96959b1dd696cc5af6e3455279043a49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
enable_language(CXX)
find_package(Qt5 REQUIRED COMPONENTS Core)
# Detect `-NOTFOUND` libraries at generate time.
cmake_policy(SET CMP0111 NEW)
add_executable(imported::executable IMPORTED)
add_library(imported::shared SHARED IMPORTED)
add_library(imported::static STATIC IMPORTED)
add_library(imported::unknown UNKNOWN IMPORTED)
add_library(imported::interface INTERFACE IMPORTED)
add_library(imported::module MODULE IMPORTED)
function (set_location target name loc)
set_property(TARGET "imported::${target}" PROPERTY
"IMPORTED_${name}" "${loc}")
endfunction ()
set(CMAKE_AUTOMOC 1)
add_library(automoc
empty.cpp)
target_link_libraries(automoc
PRIVATE
imported::shared
imported::static
imported::unknown
imported::interface)
add_dependencies(automoc
imported::executable
imported::module)
|