Initial commit of the new code.
[qtgstreamer:qtgstreamer.git] / src / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_BINARY_DIR})
2
3 set(QtGstreamer_SRCS
4     QGlib/quark.cpp
5     QGlib/type.cpp
6     QGlib/paramspec.cpp
7     QGlib/object.cpp
8     QGlib/value.cpp
9     QGlib/closure.cpp
10
11     QGst/object.cpp
12 )
13
14 set(QtGstreamer_HEADERS
15     QGlib/global.h
16     QGlib/gdeclarations.h
17     QGlib/quark.h       QGlib/Quark
18     QGlib/type.h        QGlib/Type
19     QGlib/refpointer.h  QGlib/RefPointer
20     QGlib/paramspec.h   QGlib/ParamSpec
21     QGlib/object.h      QGlib/Object
22     QGlib/value.h       QGlib/Value
23     QGlib/closure.h     QGlib/Closure
24
25     QGlib/valueimpl/assert.h
26     QGlib/valueimpl/valueimpl.h
27     QGlib/valueimpl/nativetypes.h
28     QGlib/valueimpl/paramspecptr.h
29     QGlib/valueimpl/objectptr.h
30
31     QGst/global.h
32     QGst/object.h       QGst/Object
33 )
34
35 automoc4_add_library(QtGstreamer SHARED ${QtGstreamer_SRCS})
36 set_target_properties(QtGstreamer PROPERTIES SOVERSION 0 VERSION 0.0.2)
37 target_link_libraries(QtGstreamer ${QT_QTCORE_LIBRARY} ${GSTREAMER_LIBRARIES}
38                                   ${GSTREAMER_INTERFACE_LIBRARY} ${GOBJECT_LIBRARIES})
39 target_link_libraries(QtGstreamer LINK_INTERFACE_LIBRARIES ${QT_QTCORE_LIBRARY})
40
41
42 install(TARGETS QtGstreamer DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
43
44 foreach(header ${QtGstreamer_HEADERS})
45     get_filename_component(header_path ${header} PATH)
46     install(FILES ${header} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/QtGstreamer/${header_path})
47 endforeach(header ${QtGstreamer_HEADERS})