on bbbdccd help sign in
unity8/plugins/Dash/CMakeLists.txt
43 lines 1.2 kB history raw
1# There's no cmake var for v8 include path :-/
2# so create one
3LIST(GET Qt5Core_INCLUDE_DIRS 0 QtCoreDir0)
4if(${Qt5Core_VERSION_STRING} VERSION_LESS "5.1.0")
5 SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/../QtV8/${Qt5Core_VERSION_STRING}/QtV8)
6else()
7 SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/QtV8/${Qt5Core_VERSION_STRING}/QtV8)
8endif()
10include_directories(
11 ${CMAKE_CURRENT_SOURCE_DIR}
12 ${CMAKE_CURRENT_BINARY_DIR}
13 ${Qt5Qml_PRIVATE_INCLUDE_DIRS}
14 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
15 ${Qt5V8_PRIVATE_INCLUDE_DIR}
18remove_definitions(-DQT_NO_KEYWORDS)
20set(QMLPLUGIN_SRC
21 plugin.cpp
22 listviewwithpageheader.cpp
23 abstractdashview.cpp
24 verticaljournal.cpp
25 horizontaljournal.cpp
26 organicgrid.cpp
27 )
29add_library(Dash-qml MODULE
30 ${QMLPLUGIN_SRC}
31 )
33target_link_libraries(Dash-qml
34 ${Qt5Gui_LIBRARIES}
35 ${Qt5Quick_LIBRARIES}
36 )
38qt5_use_modules(Dash-qml Qml Quick Concurrent)
40add_unity8_plugin(Dash 0.1 Dash TARGETS Dash-qml)
42install(FILES graphics/music_progress_bg.png DESTINATION ${SHELL_INSTALL_QML}/Dash/graphics/)
43file(COPY graphics/music_progress_bg.png DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/graphics/)