summaryrefslogtreecommitdiff
path: root/src/lib/eet/CMakeLists.txt
blob: b0aaffd190ecd2109284221c06b3b007ffb95e7c (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
set(DESCRIPTION "Library for speedy data storage, retrieval, and compression")

set(PKG_CONFIG_REQUIRES_PRIVATE
  zlib>=1.2.3
  libjpeg
)

set(PUBLIC_LIBRARIES
  eina
  emile
)

set(LIBRARIES
  m
)

set(PUBLIC_HEADERS
  Eet.h
)

set(SOURCES
  eet_alloc.c
  eet_cipher.c
  eet_connection.c
  eet_data.c
  eet_dictionary.c
  eet_image.c
  eet_lib.c
  eet_node.c
  Eet_private.h
  eet_utils.c
  ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.c
  ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc2.c
  ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/etc2_encoder.c
  ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.h
)

set(INCLUDE_DIRECTORIES
  ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc
)

if(WITH_CRYPTO STREQUAL "gnutls")
  list(APPEND PKG_CONFIG_REQUIRES_PRIVATE gnutls)
elseif(WITH_CRYPTO STREQUAL "openssl")
  list(APPEND PKG_CONFIG_REQUIRES_PRIVATE openssl)
endif()