2024-05-04 06:21:31 -05:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(extract-projectfile-versions)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
2024-09-30 04:21:17 -05:00
|
|
|
find_package(Qt6 COMPONENTS Core Sql REQUIRED)
|
2024-05-04 06:21:31 -05:00
|
|
|
|
|
|
|
add_executable(extract-projectfile-versions main.cpp)
|
|
|
|
|
2024-09-30 04:21:17 -05:00
|
|
|
target_link_libraries(extract-projectfile-versions Qt6::Core Qt6::Sql)
|
2024-05-04 06:21:31 -05:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
add_custom_command(
|
|
|
|
TARGET extract-projectfile-versions
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:extract-projectfile-versions>
|
|
|
|
$<TARGET_FILE_DIR:extract-projectfile-versions>
|
|
|
|
COMMAND_EXPAND_LISTS
|
|
|
|
)
|
|
|
|
endif(MSVC)
|