diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 18:43:28 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-02-15 18:43:28 +0800 |
commit | 0db7268f5b81f39a4126782c2fef4282c2e75dd8 (patch) | |
tree | d1bb8ee1862283ad1a0fe0eae0e98ffbe4ef7bef /simple-visualization/CMakeLists.txt | |
parent | 03d0aa4f39f72d27fed75020d2a3e80413ae029a (diff) | |
download | QMidiPlayer-0db7268f5b81f39a4126782c2fef4282c2e75dd8.tar.xz |
Make resource files for Windows actually work.0.8.7-1
Diffstat (limited to 'simple-visualization/CMakeLists.txt')
-rw-r--r-- | simple-visualization/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/simple-visualization/CMakeLists.txt b/simple-visualization/CMakeLists.txt index 689dd99..9966c31 100644 --- a/simple-visualization/CMakeLists.txt +++ b/simple-visualization/CMakeLists.txt @@ -8,7 +8,9 @@ set(simple-visualization_SOURCES ) if(WIN32) - list(APPEND simple-visualization_SOURCES simple-visualization.rc) + get_filename_component(CURRENT_SUBPROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME) + configure_file("simple-visualization.rc.in" "simple-visualization.rc" @ONLY) + list(APPEND simple-visualization_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/simple-visualization.rc) endif(WIN32) set(CMAKE_AUTOMOC ON) |