summaryrefslogtreecommitdiffstats
path: root/arts/builder/CMakeLists.txt
blob: 2e350faa97c2dea74d13150cee128c21f0312463 (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
#################################################
#
#  (C) 2017 Slávek Banko
#  slavek (DOT) banko (AT) axis.cz
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( pics )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/arts/runtime
  ${CMAKE_BINARY_DIR}/arts/runtime
  ${CMAKE_BINARY_DIR}
  ${ARTS_INCLUDE_DIRS}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${ARTS_LIBRARY_DIRS}
)


##### artsbuilder (executable) ##################

tde_add_executable( artsbuilder AUTOMOC
  SOURCES
    autorouter.cpp main.cpp propertypanelbase.ui
    module.cpp propertypanel.cpp structure.cpp
    retrievedlg.cpp createtool.cpp structureport.cpp
    drawutils.cpp scomponent.cpp portposdlg.cpp
    menumaker.cpp session.cpp dirmanager.cpp mwidget.cpp
    execdlg.cpp qttableview.cpp interfacedlg.cpp
  LINK
    tdecore-shared tdeui-shared tdeio-shared artsbuilder-shared artskde-shared
    mcop qtmcop artsflow_idl soundserver_idl pthread
  DEPENDENCIES
    arts_builder_headers
  DESTINATION ${BIN_INSTALL_DIR}
)

add_custom_target(
  arts_builder_headers
  DEPENDS
    ${CMAKE_CURRENT_BINARY_DIR}/propertypanelbase.h
)


##### other data ################################

tde_create_translated_desktop(
  SOURCE artsbuilder.desktop
  PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/artsbuilder-desktops
)

tde_create_translated_desktop(
  SOURCE x-artsbuilder.desktop
  DESTINATION ${MIME_INSTALL_DIR}/application
  PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/artsbuilder-desktops
)

install( FILES artsbuilderui.rc DESTINATION ${DATA_INSTALL_DIR}/artsbuilder )