summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 8d4feb3cd4063340d34403f3b3e630260972ceca (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
63
64
65
66
67
68
69
include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/metadata
  ${CMAKE_CURRENT_SOURCE_DIR}/pluginloader
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
  ${CDPARANOIA_INCLUDE_DIR}
)

link_directories(
  ${TDE_LIB_DIR}
)


##### subfolders

add_subdirectory( amarokscript )
add_subdirectory( metadata )
add_subdirectory( pics )
add_subdirectory( pluginloader )
add_subdirectory( plugins )


##### soundkonverter (executable)

tde_add_executable( soundkonverter AUTOMOC
  SOURCES
    cddb.cpp cdmanager.cpp cdopener.cpp combobutton.cpp
    configuration.cpp configbackendspage.cpp configdialog.cpp configenvironmentpage.cpp
    configgeneralpage.cpp configpagebase.cpp configpluginspage.cpp conversionoptions.cpp
    convert.cpp cuesheeteditor.cpp dcopinterface.skel dirdialog.cpp filelist.cpp
    logger.cpp logviewer.cpp main.cpp options.cpp optionsdetailed.cpp
    optionseditor.cpp optionsrequester.cpp optionssimple.cpp outputdirectory.cpp paranoia.cpp
    progressindicator.cpp replaygain.cpp replaygainfilelist.cpp replaygainscanner.cpp
    soundkonverter.cpp soundkonverterapp.cpp
  LINK
    metadata-static tagspeex-static tagtrueaudio-static tagwavpack-static tagasf-static
    tagwav-static tagrealmedia-static tagm4a-static tagaac-static tagaudible-static
    tagmonkeysaudio-static tagoptimfrog-static pluginloader-static
    tdecore-shared tdefx-shared tdeui-shared tdeio-shared tdetexteditor-shared DCOP-shared
    ${TAGLIB_LIBRARIES} ${CDPARANOIA_LIBRARIES}
  DESTINATION ${BIN_INSTALL_DIR}
)


##### app icon

tde_install_icons( ${PROJECT_NAME} )
tde_install_icons( ${PROJECT_NAME}_replaygain )


##### other files

tde_create_translated_desktop(
  SOURCE audiocd_extract_with_soundkonverter.desktop
  DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
)

tde_create_translated_desktop(
  SOURCE soundkonverter.desktop
  DESTINATION ${XDG_APPS_INSTALL_DIR}
)

install(
  FILES soundkonverterui.rc
  DESTINATION ${DATA_INSTALL_DIR}/soundkonverter
)