From d7a8babb19bcc1107daff0cc5673bc32b0ed785b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sun, 29 Mar 2009 18:47:10 +0200 Subject: Prepared for linking in libxslt Added two extra ./configure arguments, --xslt-path which defines the root directory for all eurephia specific XSLT templates (defaults to /usr/share/eurephia/xslt) and --eurephiadm-xslt which defines the path eurephiadm will use for its XSLT templates (defaults to /usr/share/eurephia/xslt/eurephiadm) Added an extra configuration paramet for eurephiadm (eurephiadm_xslt_path), which can be used to override the compiled in default values --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a8a9e9b..cfe5526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ OPTION(PLUGIN "Build the eurephia plugin for OpenVPN" OFF) SET(OPENVPN_SRC "" CACHE STRING "Path to OpenVPN source code") SET(PREFIX "/etc/openvpn/eurephia" CACHE STRING "Install prefix for eurephia") +SET(XSLTROOT "/usr/share/eurephia/xslt" CACHE STRING "Root path for the XSLT templates") SET(CMAKE_INSTALL_PREFIX ${PREFIX}) IF(SQLITE3) @@ -27,12 +28,20 @@ IF(EUREPHIADM) ENDIF(EUREPHIADM) IF(ADMIN_ENABLED) + # Find required packages for eurephiadm - libxml2 and libxslt find_package(PkgConfig) pkg_search_module(LIBXML2 REQUIRED libxml-2.0 libxml2 libxml>=2.6) INCLUDE_DIRECTORIES(BEFORE ${LIBXML2_INCLUDE_DIRS}) ADD_DEFINITIONS(-DHAVE_LIBXML2) SET(EXTRA_LIBS ${EXTRA_LIBS} ${LIBXML2_LIBRARIES}) + pkg_search_module(LIBXSLT REQUIRED libxslt) + INCLUDE_DIRECTORIES(BEFORE ${LIBXSLT_INCLUDE_DIRS}) + ADD_DEFINITIONS(-DHAVE_LIBXSLT) + SET(EXTRA_LIBS ${EXTRA_LIBS} ${LIBXSLT_LIBRARIES}) + + # Find optional package for eurephiadm - OpenSSL. + # Used for parsing certificate files. pkg_search_module(OPENSSL OPTIONAL openssl>=0.9.8) IF(OPENSSL_FOUND) ADD_DEFINITIONS(-DHAVE_OPENSSL) -- cgit