[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [alkimia/work/397112-alkonlinequotes] qml: Add missing cmake file
From:       Ralf Habacker <null () kde ! org>
Date:       2018-08-28 17:00:30
Message-ID: E1fuhLy-0004r1-5K () code ! kde ! org
[Download RAW message or body]

Git commit caf007e0969738a89b55a0ebc7ca50e0e4691a3c by Ralf Habacker.
Committed on 28/08/2018 at 15:53.
Pushed by habacker into branch 'work/397112-alkonlinequotes'.

Add missing cmake file

A  +34   -0    qml/CMakeLists.txt

https://commits.kde.org/alkimia/caf007e0969738a89b55a0ebc7ca50e0e4691a3c

diff --git a/qml/CMakeLists.txt b/qml/CMakeLists.txt
new file mode 100644
index 0000000..b4c76ec
--- /dev/null
+++ b/qml/CMakeLists.txt
@@ -0,0 +1,34 @@
+if(BUILD_QT4)
+    set(LIBS ${QT_USE_LIBSPREFIX}Declarative)
+    set(QML_INSTALL_DIR ${LIB_INSTALL_DIR}/qt4/plugins/imports)
+else()
+    set(LIBS ${QT_USE_LIBSPREFIX}Qml)
+    set(QML_INSTALL_DIR ${LIB_INSTALL_DIR}/qt5/qml)
+    set_package_properties(Qt5Qml PROPERTIES  URL "git://gitorious.org/qt/=
qtdeclarative.git"
+        DESCRIPTION "QML support for Alkimia"
+        TYPE OPTIONAL
+        PURPOSE "Allows to use Alkimiain QML code"
+    )
+    if(NOT Qt5Qml_FOUND)
+        message(STATUS "Qt5Qml not found, qml imports will not be built.")
+        return()
+    endif()
+endif()
+
+set(IMPORTS_DIR ${CMAKE_BINARY_DIR}/bin/org/kde/alkimia)
+if(WIN32)
+    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${IMPORTS_DIR})
+else()
+    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${IMPORTS_DIR})
+endif()
+
+configure_file(qmldir ${IMPORTS_DIR}/qmldir)
+add_library(qmlalkimia SHARED qmlalkimiaplugin.cpp)
+target_link_libraries(qmlalkimia ${LIBS} alkimia)
+
+install(TARGETS qmlalkimia
+    RUNTIME DESTINATION ${QML_INSTALL_DIR}/org/kde/alkimia
+    LIBRARY DESTINATION ${QML_INSTALL_DIR}/org/kde/alkimia)
+install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/alkimia)
+
+# run qml file with

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic