root / modules / falf_mediaplayer / CMakeLists.txt @ 48d9d2be
History | View | Annotate | Download (783 Bytes)
| 1 | set (SOURCES |
|---|---|
| 2 | falf.cpp |
| 3 | ) |
| 4 | |
| 5 | set (MOC_SOURCES |
| 6 | falf.h |
| 7 | ) |
| 8 | |
| 9 | kadu_module_desc (falf_mediaplayer.desc) |
| 10 | qt_wrap_cpp (falf_mediaplayer MOC_FILES ${MOC_SOURCES})
|
| 11 | |
| 12 | if (COMMAND cmake_policy) |
| 13 | cmake_policy(SET CMP0003 NEW) |
| 14 | endif (COMMAND cmake_policy) |
| 15 | |
| 16 | #pkg_search_module (FALF REQUIRED falf) |
| 17 | |
| 18 | add_library (falf_mediaplayer ${falf_mediaplayer} ${SOURCES} ${MOC_FILES})
|
| 19 | |
| 20 | target_link_libraries (falf_mediaplayer ${QT_QTDBUS_LIBRARY})
|
| 21 | #target_link_libraries (falf_mediaplayer ${FALF_LIBRARIES})
|
| 22 | #include_directories (${FALF_INCLUDE_DIRS})
|
| 23 | |
| 24 | if (falf_mediaplayer STREQUAL STATIC) |
| 25 | set_target_properties(falf_mediaplayer PROPERTIES COMPILE_FLAGS "-DKADULIB" ) |
| 26 | else (falf_mediaplayer STREQUAL STATIC) |
| 27 | install (TARGETS falf_mediaplayer DESTINATION ${MODULEDIR})
|
| 28 | endif (falf_mediaplayer STREQUAL STATIC) |
| 29 |