6f7d09677a
Set the RUNTIME_OUTPUT_DIRECTORY for configure-time executables so executable will be located inside the QT_BUILD_DIR. This allows to re-build syncqt and make sure ithat ts binary is replaced and located in the libexec directory. Comment on how to rebuild syncqt. Configure-time tools reserve the original tool name for the imported executable. To re-build syncqt use 'syncqt_build' target. Task-number: QTBUG-109792 Change-Id: Id7d912b1d75d18d82cb2a69fbd62b89440120d78 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
24 lines
785 B
Plaintext
24 lines
785 B
Plaintext
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(@configure_time_target@ LANGUAGES CXX)
|
|
|
|
set(packages "@packages@")
|
|
set(defines @defines@)
|
|
set(compile_options @compile_options@)
|
|
set(link_options @link_options@)
|
|
set(output_directory @output_directory@)
|
|
|
|
foreach(package IN LISTS packages)
|
|
find_package(${package} REQUIRED)
|
|
endforeach()
|
|
|
|
add_executable(@configure_time_target@ @win32@ @macosx_bundle@ @sources@)
|
|
set_target_properties(@configure_time_target@ PROPERTIES
|
|
INCLUDE_DIRECTORIES "@include_directories@"
|
|
RUNTIME_OUTPUT_DIRECTORY "${output_directory}"
|
|
)
|
|
|
|
target_compile_options(@configure_time_target@ PRIVATE ${compile_options})
|
|
target_compile_definitions(@configure_time_target@ PRIVATE ${defines})
|
|
target_link_options(@configure_time_target@ PRIVATE ${link_options})
|