~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to libkcddb/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
add_subdirectory( test )
4
4
add_subdirectory( kcmcddb )
5
5
 
6
 
if(MUSICBRAINZ_FOUND)
7
 
    set(HAVE_MUSICBRAINZ 1)
8
 
    include_directories(${MUSICBRAINZ_INCLUDE_DIR})
 
6
if(MUSICBRAINZ3_FOUND)
 
7
    set(HAVE_MUSICBRAINZ3 1)
 
8
    include_directories(${MUSICBRAINZ3_INCLUDE_DIR})
9
9
 
10
10
    set(libmusicbrainz_SRCS ${libmusicbrainz_SRCS}
11
11
       musicbrainz/musicbrainzlookup.cpp
12
12
       musicbrainz/asyncmusicbrainzlookup.cpp)
13
 
else(MUSICBRAINZ_FOUND)
14
 
    set(HAVE_MUSICBRAINZ 0)
 
13
 
 
14
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
 
15
else(MUSICBRAINZ3_FOUND)
 
16
    set(HAVE_MUSICBRAINZ3 0)
15
17
    set(libmusicbrainz_SRCS)
16
 
endif(MUSICBRAINZ_FOUND)
 
18
endif(MUSICBRAINZ3_FOUND)
17
19
 
18
20
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-musicbrainz.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-musicbrainz.h )
19
21
 
20
22
include_directories(${CMAKE_BINARY_DIR}/libkcddb/ )
21
23
 
22
 
add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
23
 
 
24
24
########### next target ###############
25
25
 
26
26
set(kcddb_LIB_SRCS ${libmusicbrainz_SRCS}
27
 
   cache.cpp 
28
 
   cdinfo.cpp 
29
 
   kcddbconfig.cpp 
30
 
   client.cpp 
 
27
   cache.cpp
 
28
   cdinfo.cpp
 
29
   kcddbconfig.cpp
 
30
   client.cpp
31
31
   kcddb.cpp
32
 
   cddb.cpp 
33
 
   lookup.cpp 
34
 
   cddbplookup.cpp 
35
 
   synccddbplookup.cpp 
36
 
   asynccddbplookup.cpp 
37
 
   httplookup.cpp 
38
 
   synchttplookup.cpp 
39
 
   asynchttplookup.cpp 
40
 
   smtpsubmit.cpp 
41
 
   asyncsmtpsubmit.cpp 
42
 
   syncsmtpsubmit.cpp 
43
 
   submit.cpp 
44
 
   sites.cpp 
45
 
   httpsubmit.cpp 
46
 
   asynchttpsubmit.cpp 
47
 
   synchttpsubmit.cpp 
48
 
   categories.cpp 
49
 
   genres.cpp 
50
 
   cdinfodialog.cpp 
 
32
   cddb.cpp
 
33
   lookup.cpp
 
34
   cddbplookup.cpp
 
35
   synccddbplookup.cpp
 
36
   asynccddbplookup.cpp
 
37
   httplookup.cpp
 
38
   synchttplookup.cpp
 
39
   asynchttplookup.cpp
 
40
   smtpsubmit.cpp
 
41
   asyncsmtpsubmit.cpp
 
42
   syncsmtpsubmit.cpp
 
43
   submit.cpp
 
44
   sites.cpp
 
45
   httpsubmit.cpp
 
46
   asynchttpsubmit.cpp
 
47
   synchttpsubmit.cpp
 
48
   categories.cpp
 
49
   genres.cpp
 
50
   cdinfodialog.cpp
51
51
   cdinfoencodingwidget.cpp )
52
52
 
53
53
 
57
57
 
58
58
kde4_add_library(kcddb SHARED ${kcddb_LIB_SRCS})
59
59
 
60
 
target_link_libraries(kcddb ${KDE4_KDE3SUPPORT_LIBS})
61
 
if(MUSICBRAINZ_FOUND)
62
 
    target_link_libraries(kcddb ${MUSICBRAINZ_LIBRARIES})
63
 
endif(MUSICBRAINZ_FOUND)
 
60
target_link_libraries(kcddb ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
 
61
if(MUSICBRAINZ3_FOUND)
 
62
    target_link_libraries(kcddb ${MUSICBRAINZ3_LIBRARIES})
 
63
endif(MUSICBRAINZ3_FOUND)
64
64
 
65
65
set_target_properties(kcddb PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
66
66
install(TARGETS kcddb  ${INSTALL_TARGETS_DEFAULT_ARGS} )