make CMakeLists.txt compile on WIN32 Platform

This commit is contained in:
2026-06-06 03:17:14 +02:00
parent 61eb9a8be5
commit 4edb2e933d
+6 -8
View File
@@ -58,9 +58,14 @@ set(RESOURCES
src/shaders.qrc
src/application.qrc
)
# normal platforms
add_executable(SubWave ${SOURCES} ${HEADERS} ${RESOURCES})
# For windows stupid ahh
if(WIN32)
set_target_properties(SubWave PROPERTIES WIN32_EXECUTABLE TRUE)
endif()
target_include_directories(SubWave PRIVATE src src/engine)
target_link_libraries(SubWave PRIVATE
@@ -71,10 +76,3 @@ target_link_libraries(SubWave PRIVATE
PkgConfig::FFMPEG
PkgConfig::FFTW
)
if(WIN32)
add_custom_command(TARGET SubWave POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"$<TARGET_FILE:PkgConfig::FFMPEG>" "$<TARGET_FILE_DIR:SubWave>"
)
endif()