make CMakeLists.txt compile on WIN32 Platform
This commit is contained in:
+6
-8
@@ -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()
|
||||
Reference in New Issue
Block a user