2020-05-24 15:14:33 +08:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(ads_example_deleteonclose VERSION ${VERSION_SHORT})
|
2021-04-29 04:52:45 +08:00
|
|
|
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED)
|
2020-05-24 15:14:33 +08:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
add_executable(DeleteOnCloseTest WIN32
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
target_include_directories(DeleteOnCloseTest PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../src")
|
|
|
|
target_link_libraries(DeleteOnCloseTest PRIVATE qtadvanceddocking)
|
2021-04-29 04:52:45 +08:00
|
|
|
target_link_libraries(DeleteOnCloseTest PUBLIC Qt${QT_VERSION_MAJOR}::Core
|
|
|
|
Qt${QT_VERSION_MAJOR}::Gui
|
|
|
|
Qt${QT_VERSION_MAJOR}::Widgets)
|
2020-05-24 15:14:33 +08:00
|
|
|
set_target_properties(DeleteOnCloseTest PROPERTIES
|
|
|
|
AUTOMOC ON
|
|
|
|
CXX_STANDARD 14
|
|
|
|
CXX_STANDARD_REQUIRED ON
|
|
|
|
CXX_EXTENSIONS OFF
|
|
|
|
VERSION ${VERSION_SHORT}
|
|
|
|
EXPORT_NAME "Qt Advanced Docking System Delete on Close Example"
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
|
|
|
|
)
|