blob: 6cd408f1ec6bc1d8e15e704c0a500003bd688124 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
set(simple-visualization_SOURCES
qmpkeyboardwindow.hpp
qmppianowidget.hpp
simplevisualization.hpp
qmpkeyboardwindow.cpp
qmppianowidget.cpp
simplevisualization.cpp
)
if(WIN32)
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)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
include_directories(${PROJECT_SOURCE_DIR}/include/)
add_library(simple-visualization MODULE
${simple-visualization_SOURCES}
)
target_link_libraries(simple-visualization
Qt${QT_VERSION_MAJOR}::Widgets
)
install(TARGETS simple-visualization LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)
|