on a142f21 help sign in
unity8/plugins/Dash/CMakeLists.txt
42 lines 1.0 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 croppedimagesizer.cpp
28 croppedimagesizerasyncworker.cpp
29 )
31add_library(Dash-qml MODULE
32 ${QMLPLUGIN_SRC}
33 )
35target_link_libraries(Dash-qml
36 ${Qt5Gui_LIBRARIES}
37 ${Qt5Quick_LIBRARIES}
38 )
40qt5_use_modules(Dash-qml Qml Quick Concurrent)
42add_unity8_plugin(Dash 0.1 Dash TARGETS Dash-qml)