2022-08-03 15:46:15 +00:00
|
|
|
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@)
|
2023-01-03 16:54:18 +00:00
|
|
|
set(output_directory @output_directory@)
|
2022-08-03 15:46:15 +00:00
|
|
|
|
|
|
|
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@"
|
2023-01-03 16:54:18 +00:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${output_directory}"
|
2022-08-03 15:46:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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})
|