blob: 559d8bc672e93ad7a97af7a73128e9f7a53f0ac3 (
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
|
#################################################
#
# (C) 2014 Slávek Banko
# slavek (DOT) banko (AT) axis.cz
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_INSTALL_INCLUDEDIR}/libr
${BACKEND_INCLUDE_DIRS}
${LIBGLADE_INCLUDE_DIRS}
)
add_definitions(
-D__LIBR_BACKEND_${BACKEND_NAME}__
-D__LIBR_BUILD__
)
set( target r )
##### library ###################################
set( ${target}_SRCS
libr-${LIBR_BACKEND}.c
tempfiles.c
onecanvas.c
libr-icons.c
libr-i18n.c
libr-gtk.c
libr.c
)
tde_add_library(
${target} SHARED
VERSION 0.0.0
SOURCES ${${target}_SRCS}
LINK ${BACKEND_LIBRARIES} ${ZLIB_LIBRARIES} ${DL_LIBRARIES} ${EXTRA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
tde_add_library(
${target} STATIC_PIC
VERSION 0.0.0
SOURCES ${${target}_SRCS}
LINK ${BACKEND_LIBRARIES} ${ZLIB_LIBRARIES} ${EXTRA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
##### headers ###################################
set( ${target}_INCLUDES
gettext.h
libr-icons.h
libr-i18n.h
libr-gtk.h
libr.h
)
install(
FILES ${${target}_INCLUDES}
DESTINATION ${INCLUDE_INSTALL_DIR}/libr
)
|