summaryrefslogtreecommitdiffstats
path: root/libk3b/CMakeLists.txt
blob: 8f51d69d1d165a2d1d3a7585ce392a9da2809b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#################################################
#
#  (C) 2016 Golubev Alexander
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( core )
add_subdirectory( plugin )
add_subdirectory( tools )
add_subdirectory( projects )
add_subdirectory( cddb )
add_subdirectory( jobs )
# add_subdirectory( scripts ) # the directory sciped in autotools either

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### k3b (shared) ##############################

if ( WITH_LIBDVDREAD )
  add_subdirectory( videodvd )
  set ( VIDEODVDRIP_LIBRARIES videodvdrip-static)
endif ( )

# Note: Due to embending into static libraries doesn't work correctly we have
#       to embend all the substuff here.

# From plugin
if ( NOT WITH_SYSTEM_LIBSAMPLERATE )
  list ( APPEND SUBLIBRARIES samplerate-static )
endif ( )

# From tools
list ( APPEND SUBLIBRARIES isofs-static )

# From projects
list ( APPEND SUBLIBRARIES data-static dvd-static mixed-static vcd-static
  videodvd-static movix-static movixdvd-static audio-static mpeginfo-static )

tde_add_library( k3b SHARED AUTOMOC
  SOURCES dummy.cpp
  VERSION 3.0.0
  EMBED k3bcore-static cddb-static k3bproject-static k3btools-static
    jobs-static k3bplugin-static ${VIDEODVDRIP_LIBRARIES} ${SUBLIBRARIES}
  LINK dl tdeio-shared tdeui-shared k3bdevice-shared
  DESTINATION ${LIB_INSTALL_DIR}
)