~ubuntu-branches/ubuntu/natty/kadu/natty

« back to all changes in this revision

Viewing changes to modules/winamp_mediaplayer/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Kiszel Kristóf
  • Date: 2010-07-21 15:24:54 UTC
  • mfrom: (0.6.1) (0.5.1) (1.4.1) (22.1.2 maverick)
  • Revision ID: package-import@ubuntu.com-20100721152454-vttqle18lovfudni
Tags: 0.6.5.4.ds1-3ubuntu2
Remove libqt4-webkit-dev from build-depends and add
libqtwebkit-dev for qtwebkit transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set (SOURCES
 
2
        winamp.cpp
 
3
)
 
4
 
 
5
set (MOC_SOURCES
 
6
        winamp.h
 
7
)
 
8
 
 
9
if (WIN32)
 
10
        include_directories (${CMAKE_CURRENT_SOURCE_DIR})
 
11
        set (SOURCES ${SOURCES} ../module.rc)
 
12
endif (WIN32)
 
13
 
 
14
kadu_module_desc (winamp_mediaplayer.desc)
 
15
qt_wrap_cpp (winamp_mediaplayer MOC_FILES ${MOC_SOURCES})
 
16
 
 
17
if (COMMAND cmake_policy)
 
18
        cmake_policy(SET CMP0003 NEW)
 
19
endif (COMMAND cmake_policy)
 
20
 
 
21
 
 
22
add_library (winamp_mediaplayer ${winamp_mediaplayer} ${SOURCES} ${MOC_FILES})
 
23
 
 
24
if (winamp_mediaplayer STREQUAL STATIC)
 
25
        set_target_properties(winamp_mediaplayer PROPERTIES COMPILE_FLAGS "-DKADULIB" )
 
26
else (winamp_mediaplayer STREQUAL STATIC)
 
27
        if (WIN32)
 
28
                target_link_libraries(winamp_mediaplayer kadu_core mediaplayer)
 
29
        endif (WIN32)
 
30
        if (APPLE)
 
31
                set_target_properties(winamp_mediaplayer PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
 
32
        endif (APPLE)
 
33
        install (TARGETS winamp_mediaplayer DESTINATION ${MODULEDIR})
 
34
endif (winamp_mediaplayer STREQUAL STATIC)
 
35