diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index fed6a71..b3a52c8 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -7,13 +7,4 @@ add_executable(${PROJECT_NAME} main.cpp ) -if (WIN32) - add_custom_command( - TARGET ${PROJECT_NAME} - POST_BUILD - COMMAND "${QT_BIN_DIR}/windeployqt.exe" - ARGS "${CMAKE_BINARY_DIR}/bin" - ) -endif () - -target_link_libraries(${PROJECT_NAME} PRIVATE qt) \ No newline at end of file +target_link_libraries(${PROJECT_NAME} PRIVATE qt) diff --git a/lib/qt/CMakeLists.txt b/lib/qt/CMakeLists.txt index 19ee8ed..ddc0824 100644 --- a/lib/qt/CMakeLists.txt +++ b/lib/qt/CMakeLists.txt @@ -53,7 +53,7 @@ if (NOT Qt6_FOUND) set(QT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/qt-build") file(MAKE_DIRECTORY ${QT_BUILD_DIR}) message(STATUS "Configuring...") - execute_process(COMMAND "${QT_SOURCE_DIR}/configure${CONFIG_SCRIPT_EXT}" -prefix ${QT_BUILD_DIR} + execute_process(COMMAND "${QT_SOURCE_DIR}/configure${CONFIG_SCRIPT_EXT}" -static -prefix ${QT_BUILD_DIR} WORKING_DIRECTORY ${QT_BUILD_DIR}) # Build Qt