aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/CMakeLists.txt')
-rw-r--r--qmidiplayer-desktop/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/CMakeLists.txt b/qmidiplayer-desktop/CMakeLists.txt
index 037a3f1..9d285c3 100644
--- a/qmidiplayer-desktop/CMakeLists.txt
+++ b/qmidiplayer-desktop/CMakeLists.txt
@@ -44,7 +44,9 @@ set(qmpdesktop_SOURCES
)
if(WIN32)
- list(APPEND qmpdesktop_SOURCES qmidiplayer.rc)
+ get_filename_component(CURRENT_SUBPROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+ configure_file("qmidiplayer.rc.in" "qmidiplayer.rc" @ONLY)
+ list(APPEND qmpdesktop_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/qmidiplayer.rc)
endif(WIN32)
set(CMAKE_AUTOMOC ON)