plugin: fix cmake version
Also print message
This commit is contained in:
parent
af43c1166e
commit
738c9bc785
2 changed files with 5 additions and 3 deletions
|
|
@ -4,6 +4,8 @@ if(QT_KNOWN_POLICY_QTP0001)
|
|||
qt_policy(SET QTP0001 NEW)
|
||||
endif()
|
||||
|
||||
string(REGEX MATCH "^[0-9]+\\.[0-9]+" VERSION_SHORT "${VERSION}")
|
||||
|
||||
set(QT_QML_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/qml")
|
||||
qt_standard_project_setup()
|
||||
add_subdirectory(src/Caelestia)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ pkg_check_modules(AUBIO REQUIRED aubio)
|
|||
|
||||
qt_add_qml_module(caelestia
|
||||
URI Caelestia
|
||||
VERSION ${VERSION}
|
||||
VERSION ${VERSION_SHORT}
|
||||
SOURCES
|
||||
cutils.hpp cutils.cpp
|
||||
cachingimagemanager.hpp cachingimagemanager.cpp
|
||||
|
|
@ -23,10 +23,10 @@ qt_query_qml_module(caelestia
|
|||
TARGET_PATH module_target_path
|
||||
QMLDIR module_qmldir
|
||||
TYPEINFO module_typeinfo
|
||||
QML_FILES module_qml_files
|
||||
RESOURCES module_resources
|
||||
)
|
||||
|
||||
message(STATUS "Created QML module ${module_uri}, version ${module_version}")
|
||||
|
||||
set(module_dir "${INSTALL_QMLDIR}/${module_target_path}")
|
||||
install(TARGETS caelestia LIBRARY DESTINATION "${module_dir}" RUNTIME DESTINATION "${module_dir}")
|
||||
install(TARGETS "${module_plugin_target}" LIBRARY DESTINATION "${module_dir}" RUNTIME DESTINATION "${module_dir}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue