summaryrefslogtreecommitdiffstats
path: root/utils/CMakeLists.txt
blob: bcaed057f5bc19de8539fd597119898d34a0977c (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
PROJECT(eurephia_init C)
cmake_minimum_required(VERSION 2.6)

IF(EUREPHIADM)
  SET(e_init_SRC
        eurephia_init.c
        benchmark.c
        ../common/eurephia_values.c
        ../common/eurephia_log.c
        ../common/eurephia_getsym.c
        ../common/eurephia_xml.c
        ../common/passwd.c
        ../common/sha512.c
        ../common/randstr.c
        ../database/eurephiadb.c
        ../eurephiadm/get_console_input.c
        ../eurephiadm/argparser.c
        ../eurephiadm/client_context.c
  )

  ADD_DEFINITIONS(-DBENCHMARK -DINSTALL_PREFIX="${PREFIX}")
  IF(FW_IPTABLES)
        ADD_DEFINITIONS(-DFW_IPTABLES)
  ENDIF(FW_IPTABLES)

  INCLUDE_DIRECTORIES(../common ../database ../eurephiadm)
  ADD_EXECUTABLE(eurephia_init ${e_init_SRC})
  TARGET_LINK_LIBRARIES(eurephia_init dl crypto ${EXTRA_LIBS})
ENDIF(EUREPHIADM)