2019-03-13 18:38:12 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(PLUGIN "Pass")
|
|
|
|
|
|
|
|
set(
|
2019-03-20 23:04:05 +00:00
|
|
|
SRC
|
|
|
|
plugin.cpp
|
|
|
|
pass.cpp
|
2019-03-13 18:38:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
add_library(${PLUGIN} MODULE ${SRC})
|
|
|
|
set_target_properties(${PLUGIN} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGIN})
|
|
|
|
qt5_use_modules(${PLUGIN} Qml Quick DBus)
|
|
|
|
|
2019-03-16 15:18:05 +00:00
|
|
|
|
2019-03-13 18:38:12 +00:00
|
|
|
execute_process(
|
2019-03-20 23:04:05 +00:00
|
|
|
COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
|
|
|
|
OUTPUT_VARIABLE ARCH_TRIPLET
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
2019-03-13 18:38:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(QT_IMPORTS_DIR "/lib/${ARCH_TRIPLET}")
|
|
|
|
|
|
|
|
install(TARGETS ${PLUGIN} DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|
|
|
|
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|