~ubuntu-branches/ubuntu/oneiric/kdebindings/oneiric

« back to all changes in this revision

Viewing changes to smoke/qtsql/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muskovac
  • Date: 2010-12-07 00:10:46 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20101207001046-h9gf2h54ym29tgui
Tags: 4:4.5.85-0ubuntu1
* New upstream beta release
* Disable libqwt-ruby1.8 and qwt files in libqt4-ruby1.8.examples
* Add libqtdeclarative-ruby1.8, libsmokeqt3support4-3,
  libsmokeqtdeclarative4-3 and libsmokeqthelp4-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
include_directories( ${QT_INCLUDES} ${CMAKE_SOURCE_DIR}/smoke )
3
 
 
4
 
configure_file(config.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.xml @ONLY)
5
 
 
6
 
########### next target ###############
7
 
 
8
 
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp 
9
 
    ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp 
10
 
 
11
 
    COMMAND smokegen
12
 
    ARGS -config "${CMAKE_CURRENT_BINARY_DIR}/config.xml" -smokeconfig "${CMAKE_CURRENT_SOURCE_DIR}/smokeconfig.xml"
13
 
         -- ${CMAKE_CURRENT_SOURCE_DIR}/qtsql_includes.h
14
 
    DEPENDS smokegen generator_smoke WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
15
 
 
16
 
macro_add_file_dependencies( ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp )
17
 
 
18
 
include_directories (${CMAKE_SOURCE_DIR}/smoke ${CMAKE_SOURCE_DIR}/smoke/qtsql  )
19
 
 
20
 
set(smokeqtsql_LIB_SRCS ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp  
21
 
                ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp 
22
 
)
23
 
 
24
 
ADD_DEFINITIONS(-DQT_GUI_LIB)
25
 
 
26
 
IF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
27
 
    ADD_DEFINITIONS(-DGCC_VISIBILITY)
28
 
ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
29
 
 
30
 
# kde4_add_library(smokeqtsql SHARED ${smokeqtsql_LIB_SRCS})
31
 
add_library(smokeqtsql SHARED ${smokeqtsql_LIB_SRCS})
32
 
 
33
 
target_link_libraries(smokeqtsql 
34
 
                        smokeqtcore 
35
 
                        smokeqtgui 
36
 
                        ${QT_QTCORE_LIBRARY} 
37
 
                        ${QT_QTGUI_LIBRARY} 
38
 
                        ${QT_QTSQL_LIBRARY} )
39
 
 
40
 
set_target_properties(smokeqtsql PROPERTIES VERSION 3.0.0 SOVERSION 3 )
41
 
 
42
 
# Don't use the KDE ${LIB_INSTALL_DIR} macro here as this file is
43
 
# for Qt only installs
44
 
install(TARGETS smokeqtsql DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} )
45
 
install(FILES ${CMAKE_SOURCE_DIR}/smoke/qtsql_smoke.h DESTINATION include/smoke)