on 4e77f91 help sign in
unity8/plugins/Dash/CMakeLists.txt
41 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_INCLUDE_DIRS}
15 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
16 ${Qt5V8_PRIVATE_INCLUDE_DIR}
19remove_definitions(-DQT_NO_KEYWORDS)
21set(QMLPLUGIN_SRC
22 plugin.cpp
23 listviewwithpageheader.cpp
24 abstractdashview.cpp
25 verticaljournal.cpp
26 horizontaljournal.cpp
27 organicgrid.cpp
28 )
30add_library(Dash-qml MODULE
31 ${QMLPLUGIN_SRC}
32 )
34target_link_libraries(Dash-qml
35 ${Qt5Gui_LIBRARIES}
36 ${Qt5Quick_LIBRARIES}
37 )
39qt5_use_modules(Dash-qml Qml Quick)
41add_unity8_plugin(Dash 0.1 Dash TARGETS Dash-qml)