File fix-mingw.patch of Package mingw64-raptor
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6ae728..d984bad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,8 +10,8 @@ set(CMAKE_BUILD_TYPE RelWithDebInfo)
project(raptor)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
-include_directories(./src/)
-include_directories(./include/textscreen/include/)
+#include_directories(./src/)
+#include_directories(./include/textscreen/include/)
include_directories(./include/TinySoundFont/)
add_subdirectory(./include/textscreen/include)
@@ -66,8 +66,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(raptor
textscreen
asound
- SDL2::SDL2
SDL2::SDL2main
+ SDL2::SDL2
)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -76,13 +76,14 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_library(FOUNDATION_LIBRARY Foundation)
target_link_libraries(raptor ${AUDIO_TOOLBOX} ${AUDIO_UNIT} ${FOUNDATION_LIBRARY}
textscreen
- SDL2::SDL2
SDL2::SDL2main
+ SDL2::SDL2
)
else()
target_link_libraries(raptor
+ winmm
textscreen
- SDL2::SDL2
SDL2::SDL2main
+ SDL2::SDL2
)
endif()