summaryrefslogtreecommitdiffstats
path: root/tdemarkdown/CMakeLists.txt
blob: 38df3b6e0c898f8e47f8ddf231c108037e3e2f2f (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
###########################################
#                                         #
#  Copyright (C)  2022 Mavridis Philippe  #
#                  <[email protected]>  #
#                                         #
#  Improvements and feedback are welcome  #
#                                         #
#  Released under GNU GPL v2 or greater.  #
#                                         #
###########################################

### Header and library directories ########
#
include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/tdecore
  ${CMAKE_BINARY_DIR}/tdecore
  ${CMAKE_SOURCE_DIR}/tdehtml
  ${CMAKE_SOURCE_DIR}/tdeui
  ${CMAKE_SOURCE_DIR}/tdeutils
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src
)

include_directories( SYSTEM
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


### Build libtdemarkdown (kpart) ###########
#
tde_add_kpart( libtdemarkdown
  AUTOMOC
  SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/entity.c
    ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/md4c.c
    ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/md4c-html.c
    markdown_part.cpp
  LINK
    tdeparts-shared tdehtml-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


### Install part .desktop entry #############
#
tde_create_translated_desktop(
  SOURCE markdown_part.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
  PO_DIR tdemarkdown-desktops
)


### Install XML-GUI #########################
#
install(
  FILES markdown_part.rc
  DESTINATION ${DATA_INSTALL_DIR}/tdemarkdown
)