diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-02 11:40:25 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-02 11:40:25 +0200 |
commit | 0e36f50f3d943735c04ad3e3c32171c3b4863d7f (patch) | |
tree | 39ea000aff75346b7335a5aa297e2f8746dbf789 /eurephiadm | |
parent | c89dd4ca78242a67bf41f9429de16e3287e30b40 (diff) | |
download | eurephia-0e36f50f3d943735c04ad3e3c32171c3b4863d7f.tar.gz eurephia-0e36f50f3d943735c04ad3e3c32171c3b4863d7f.tar.xz eurephia-0e36f50f3d943735c04ad3e3c32171c3b4863d7f.zip |
Cleaned up CMake files for eurephiadm
Diffstat (limited to 'eurephiadm')
-rw-r--r-- | eurephiadm/CMakeLists.txt | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/eurephiadm/CMakeLists.txt b/eurephiadm/CMakeLists.txt index a9a68eb..7b2070b 100644 --- a/eurephiadm/CMakeLists.txt +++ b/eurephiadm/CMakeLists.txt @@ -1,7 +1,19 @@ PROJECT(eurephiadm C) cmake_minimum_required(VERSION 2.6) -SET(efw_ipt_SRC +# Compiler settings +INCLUDE_DIRECTORIES(../common ../database) + +# eurephiadm parameters +SET(EUREPHIADM_XSLT_PATH "${XSLTROOT}/eurephiadm/" CACHE STRING "Path for eurephiadm XSLT templates") +ADD_DEFINITIONS(-DEUREPHIADM_XSLT_PATH="${EUREPHIADM_XSLT_PATH}") + +IF(FIREWALL) + ADD_DEFINITIONS(-DFIREWALL) +ENDIF(FIREWALL) + +# Build rules for eurephiadm +ADD_EXECUTABLE(eurephiadm eurephiadm.c argparser.c get_console_input.c @@ -21,18 +33,12 @@ SET(efw_ipt_SRC commands/fwprofiles.c ../common/eurephiadb_session_common.c ) - -IF(FIREWALL) - ADD_DEFINITIONS(-DFIREWALL) -ENDIF(FIREWALL) - - -SET(EUREPHIADM_XSLT_PATH "${XSLTROOT}/eurephiadm/" CACHE STRING "Path for eurephiadm XSLT templates") -ADD_DEFINITIONS(-DEUREPHIADM_XSLT_PATH="${EUREPHIADM_XSLT_PATH}") - -INCLUDE_DIRECTORIES(../common ../database) -ADD_EXECUTABLE(eurephiadm ${efw_ipt_SRC}) +# Link in the following dynamic libraries with eurephiadm. +# ${EXTRA_LIBS} contains libxml2, libxslt and openssl library names TARGET_LINK_LIBRARIES(eurephiadm dl crypto common ${EXTRA_LIBS}) +# Install rules for eurephiadm INSTALL(TARGETS eurephiadm RUNTIME DESTINATION ${BINDIR}) + +# Also run the rules for the XSLT templates eurephiadm needs SUBDIRS(../xslt/eurephiadm) |