Debian Codegraph @

qml/Lomiri/Action/CMakeLists.txt

raw
1 set(CORE_SRCS
2 plugin.cpp
3 qml-action.cpp
4 qml-preview-action.cpp
5 qml-manager.cpp
6 qml-context.cpp
7 )
8
9 # Build everything twice. Since we have only a few
10 # source files, this is not an issue. If it does
11 # become one, change tools so they use the plugin
12 # instead of calling the classes directly.
13
14 add_library(lomiri-action-qml SHARED
15 ${CORE_SRCS}
16 )
17 target_link_libraries(lomiri-action-qml lomiri-action-qt${QT_VERSION_IN_LIBNAME})
18
19 target_link_libraries(lomiri-action-qml Qt::Qml)
20
21 set(QML_PLUGIN_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml")
22
23 install(
24 TARGETS lomiri-action-qml
25 ARCHIVE DESTINATION ${QML_PLUGIN_DIR}/Lomiri/Action
26 RUNTIME DESTINATION bin
27 LIBRARY DESTINATION ${QML_PLUGIN_DIR}/Lomiri/Action
28 )
29
30 install(
31 FILES qmldir
32 DESTINATION ${QML_PLUGIN_DIR}/Lomiri/Action
33 )
34
35 # copy qmldir file into build directory for shadow builds
36 file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
37 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
38 )