aboutsummaryrefslogtreecommitdiff
path: root/midifmt-plugin/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 18:43:28 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 18:43:28 +0800
commit0db7268f5b81f39a4126782c2fef4282c2e75dd8 (patch)
treed1bb8ee1862283ad1a0fe0eae0e98ffbe4ef7bef /midifmt-plugin/CMakeLists.txt
parent03d0aa4f39f72d27fed75020d2a3e80413ae029a (diff)
downloadQMidiPlayer-0db7268f5b81f39a4126782c2fef4282c2e75dd8.tar.xz
Make resource files for Windows actually work.0.8.7-1
Diffstat (limited to 'midifmt-plugin/CMakeLists.txt')
-rw-r--r--midifmt-plugin/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/midifmt-plugin/CMakeLists.txt b/midifmt-plugin/CMakeLists.txt
index d90ffe8..2b58b0b 100644
--- a/midifmt-plugin/CMakeLists.txt
+++ b/midifmt-plugin/CMakeLists.txt
@@ -4,7 +4,9 @@ set(midifmt-plugin_SOURCES
)
if(WIN32)
- list(APPEND midifmt-plugin_SOURCES midifmt-plugin.rc)
+ get_filename_component(CURRENT_SUBPROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+ configure_file("midifmt-plugin.rc.in" "midifmt-plugin.rc" @ONLY)
+ list(APPEND midifmt-plugin_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/midifmt-plugin.rc)
endif(WIN32)
include_directories(${PROJECT_SOURCE_DIR}/include/)