aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Gary Wang <wzc782970009@gmail.com> 2020-10-15 09:55:51 +0800
committerGravatar Gary Wang <wzc782970009@gmail.com> 2020-11-10 18:59:21 +0800
commit524aeee63007fcc40902f807475b49c814f46213 (patch)
tree8ad979c30aa0d3f67c0f4418a4d63e58c3fe5246 /qmidiplayer-desktop/CMakeLists.txt
parentb17acb9a708eb6f93d4deec70ce9b6d9657676be (diff)
downloadQMidiPlayer-524aeee63007fcc40902f807475b49c814f46213.tar.xz
fix: missing link libraries path for windows build
Diffstat (limited to 'qmidiplayer-desktop/CMakeLists.txt')
-rw-r--r--qmidiplayer-desktop/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/CMakeLists.txt b/qmidiplayer-desktop/CMakeLists.txt
index 419bb05..4c6d23a 100644
--- a/qmidiplayer-desktop/CMakeLists.txt
+++ b/qmidiplayer-desktop/CMakeLists.txt
@@ -79,6 +79,16 @@ target_link_libraries(qmidiplayer
${CMAKE_DL_LIBS}
)
+if(WIN32)
+ target_link_libraries(qmidiplayer winmm)
+endif()
+
+target_link_directories(qmidiplayer
+PRIVATE
+ ${fluidsynth_LIBRARY_DIRS}
+ ${rtmidi_LIBRARY_DIRS}
+)
+
file(GLOB qmpdesktop_TS_FILES translations/*.ts)
qt5_create_translation(qmpdesktop_QM_FILES ${qmpdesktop_SOURCES} ${qmpdesktop_TS_FILES})
add_custom_target(translations ALL DEPENDS ${qmpdesktop_QM_FILES})