diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 68d39df..abc5a3b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()