-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
31 lines (23 loc) · 1.02 KB
/
CMakeLists.txt
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
30
31
cmake_minimum_required(VERSION 3.25)
project(DLLDeployerWindowsTest LANGUAGES C CXX VERSION 1.5.1)
add_executable(test test.cpp)
find_package(libzip CONFIG REQUIRED)
target_link_libraries(test PRIVATE libzip::zip)
find_package(OpenMP REQUIRED)
target_link_libraries(test PRIVATE OpenMP::OpenMP_CXX)
find_package(Qt6 COMPONENTS Core Widgets Network REQUIRED)
target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets Qt6::Network)
target_compile_definitions(test PRIVATE QT_SUPPORT=1)
include(../DLLDeployer.cmake)
include(../QtDeployer.cmake)
QD_add_deployqt(test BUILD_MODE FLAGS "-release;--no-translations")
DLLD_add_deploy(test ALL BUILD_MODE VERBOSE COPY_VC_REDIST)
install(TARGETS test
RUNTIME DESTINATION bin)
QD_add_deployqt(test INSTALL_MODE
INSTALL_DESTINATION bin
FLAGS "-release;--no-translations")
DLLD_add_deploy(test INSTALL_MODE COPY_VC_REDIST VERBOSE
INSTALL_DESTINATION bin
OPTIONAL_DLLS "generic/*.dll;imageformats/*.dll;networkinformation/*.dll;styles/*.dll;tls/*.dll")
include(CPack)