mirror of
https://github.com/QRouland/UTPass.git
synced 2025-01-10 17:38:47 +00:00
26 lines
615 B
CMake
26 lines
615 B
CMake
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
set(PLUGIN "Pass")
|
|
|
|
set(
|
|
SRC
|
|
plugin.cpp
|
|
pass.cpp
|
|
)
|
|
|
|
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)
|
|
|
|
execute_process(
|
|
COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
|
|
OUTPUT_VARIABLE ARCH_TRIPLET
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
|
|
set(QT_IMPORTS_DIR "/lib/${ARCH_TRIPLET}")
|
|
|
|
install(TARGETS ${PLUGIN} DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|
|
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/${PLUGIN}/)
|