blob: 7f0bda9136539c11d01b34acf71874d5d2c43b1c (
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
|
# Generated from generatedoutput.pro.
#####################################################################
## tst_generatedOutput Test:
#####################################################################
qt_add_test(tst_generatedOutput
SOURCES
tst_generatedoutput.cpp
)
# Write relevant Qt include path to a file, to be read in by QDoc
set(framework_path "\n")
set(includepathsfile "${CMAKE_CURRENT_BINARY_DIR}/qdocincludepaths.inc")
find_package(Qt6 COMPONENTS Core REQUIRED)
if(Qt6Core_FOUND)
get_target_property(include_paths Qt6::Core INTERFACE_INCLUDE_DIRECTORIES)
endif()
while(include_paths)
list(POP_BACK include_paths inc_path)
if(inc_path MATCHES "(.+)/QtCore\.framework$")
string(APPEND framework_path "-F${CMAKE_MATCH_1}")
break()
endif()
endwhile()
set (include_paths "$<TARGET_PROPERTY:tst_generatedOutput,INCLUDE_DIRECTORIES>")
file(GENERATE OUTPUT ${includepathsfile} CONTENT "-I$<JOIN:${include_paths},\n-I>${framework_path}")
|