~unity-2d-team/unity-2d/charlotte-real-transparency

« back to all changes in this revision

Viewing changes to places/QtDee/CMakeLists.txt

  • Committer: Florian Boucault
  • Date: 2010-10-12 00:30:29 UTC
  • Revision ID: florian@boucault.net-20101012003029-hbbetm8fcbb7fpx5
Added experimental places:
- experimental Qt bindings for libdee with a C++ and QML test programs
- an early stages QML grid view showing applications from the applications place
- a unity-qt-places binary that loads the QML grid view

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
cmake_minimum_required(VERSION 2.8)
 
2
 
 
3
# Dependencies
 
4
include(FindPkgConfig)
 
5
find_package(Qt4 REQUIRED)
 
6
pkg_check_modules(DEE REQUIRED dee-1.0)
 
7
 
 
8
# Sources
 
9
set(QtDee_SRCS
 
10
    deelistmodel.cpp
 
11
    dee-shared-model-proxy.cpp
 
12
    plugin.cpp
 
13
    )
 
14
 
 
15
set(QtDee_MOC_HDRS
 
16
    deelistmodel.h
 
17
    dee-shared-model-proxy.h
 
18
    plugin.h
 
19
    )
 
20
 
 
21
qt4_wrap_cpp(QtDee_MOC_SRCS ${QtDee_MOC_HDRS})
 
22
 
 
23
# Build
 
24
add_library(QtDee SHARED ${QtDee_SRCS} ${QtDee_MOC_SRCS})
 
25
add_executable(test test.cpp)
 
26
 
 
27
set_target_properties(QtDee PROPERTIES
 
28
    SOVERSION 1
 
29
    VERSION 1.0.0
 
30
    )
 
31
 
 
32
include_directories(
 
33
    ${CMAKE_CURRENT_BINARY_DIR}
 
34
    ${DEE_INCLUDE_DIRS}
 
35
    )
 
36
 
 
37
target_link_libraries(QtDee
 
38
    ${QT_QTCORE_LIBRARIES}
 
39
    ${QT_QTDBUS_LIBRARIES}
 
40
    ${QT_QTDECLARATIVE_LIBRARIES}
 
41
    ${DEE_LDFLAGS}
 
42
    )
 
43
 
 
44
target_link_libraries(test
 
45
    QtDee
 
46
    )
 
47
 
 
48
# Install
 
49
set(IMPORT_INSTALL_DIR lib/qt4/imports/dee)
 
50
 
 
51
#install(TARGETS dee
 
52
#    LIBRARY DESTINATION ${IMPORT_INSTALL_DIR}
 
53
#    )
 
54
 
 
55
#install(FILES qmldir
 
56
#    DESTINATION ${IMPORT_INSTALL_DIR}
 
57
#    )