CMakeLists.txt fix for windows

This commit is contained in:
kichikuou
2019-08-03 22:27:06 +09:00
parent 8354b95413
commit 3cafea87bc
+5 -1
View File
@@ -34,7 +34,7 @@ else()
list(APPEND SRCS
win/nact_win.cpp
win/mako_win.cpp
res3/Script1.cpp
res3/Script1.rc
)
else()
list(APPEND SRCS
@@ -89,4 +89,8 @@ else()
target_link_libraries(system3 PRIVATE ${SDL2TTF_LIBRARIES} ${SDL2_LIBRARIES})
target_link_directories(system3 PRIVATE ${SDL2_LIBRARY_DIRS} ${SDL2TTF_LIBRARY_DIRS})
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(system3 PRIVATE winmm)
endif()
endif()