diff options
Diffstat (limited to 'utils/CMakeLists.txt')
-rw-r--r-- | utils/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt new file mode 100644 index 0000000..bcaed05 --- /dev/null +++ b/utils/CMakeLists.txt @@ -0,0 +1,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) |