10
include_directories (${CMAKE_CURRENT_SOURCE_DIR})
11
set (SOURCES ${SOURCES} ../module.rc)
14
kadu_module_desc (winamp_mediaplayer.desc)
15
qt_wrap_cpp (winamp_mediaplayer MOC_FILES ${MOC_SOURCES})
17
if (COMMAND cmake_policy)
18
cmake_policy(SET CMP0003 NEW)
19
endif (COMMAND cmake_policy)
22
add_library (winamp_mediaplayer ${winamp_mediaplayer} ${SOURCES} ${MOC_FILES})
24
if (winamp_mediaplayer STREQUAL STATIC)
25
set_target_properties(winamp_mediaplayer PROPERTIES COMPILE_FLAGS "-DKADULIB" )
26
else (winamp_mediaplayer STREQUAL STATIC)
28
target_link_libraries(winamp_mediaplayer kadu_core mediaplayer)
31
set_target_properties(winamp_mediaplayer PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
33
install (TARGETS winamp_mediaplayer DESTINATION ${MODULEDIR})
34
endif (winamp_mediaplayer STREQUAL STATIC)