aboutsummaryrefslogtreecommitdiff
path: root/midifmt-plugin/CMakeLists.txt
blob: 2b58b0b199174a9c4520fdd702f2ad2bd35c6471 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set(midifmt-plugin_SOURCES
    midifmtplugin.hpp
    midifmtplugin.cpp
)

if(WIN32)
    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/)

add_library(midifmt-plugin MODULE
    ${midifmt-plugin_SOURCES}
)

install(TARGETS midifmt-plugin LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)