We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6259cd commit 9d79c80Copy full SHA for 9d79c80
CMakeLists.txt
@@ -1,4 +1,4 @@
1
-cmake_minimum_required(VERSION 3.19)
+cmake_minimum_required(VERSION 3.21)
2
project(my_application LANGUAGES CXX)
3
4
find_package(Slint QUIET)
@@ -17,3 +17,7 @@ endif (NOT Slint_FOUND)
17
add_executable(my_application src/main.cpp)
18
target_link_libraries(my_application PRIVATE Slint::Slint)
19
slint_target_sources(my_application ui/appwindow.slint)
20
+# On Windows, copy the Slint DLL next to the application binary so that it's found.
21
+if (WIN32)
22
+ add_custom_command(TARGET my_application POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:my_application> $<TARGET_FILE_DIR:my_application> COMMAND_EXPAND_LISTS)
23
+endif()
0 commit comments