# cmake rules for eurephia - eurephiadm, console admin utility # # GPLv2 only - Copyright (C) 2008-2009 # David Sommerseth # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; version 2 # of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # PROJECT(eurephiadm C) cmake_minimum_required(VERSION 2.6) # 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 client_config.c client_context.c client_session.c parse_certificate_files.c xsltparser.c commands/users.c commands/lastlog.c commands/attempts.c commands/blacklist.c commands/certificates.c commands/usercerts.c commands/adminaccess.c commands/edit_config.c commands/fwprofiles.c ../common/eurephiadb_session_common.c ) # 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)