diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-02 14:23:12 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-02 14:23:12 +0200 |
commit | 6e69591846410cef6b278f454e95ae13690f0bae (patch) | |
tree | 428735f341e5e1a533212ea067ed6aa48d3b3513 /common | |
parent | 8461cb6c3df7dc9390b877dff416d979630359c2 (diff) | |
download | eurephia-6e69591846410cef6b278f454e95ae13690f0bae.tar.gz eurephia-6e69591846410cef6b278f454e95ae13690f0bae.tar.xz eurephia-6e69591846410cef6b278f454e95ae13690f0bae.zip |
Cleaned up main CMakeLists.txt file
Diffstat (limited to 'common')
-rw-r--r-- | common/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 14eafee..8510d79 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -4,6 +4,16 @@ cmake_minimum_required(VERSION 2.6) # Compiler settigns INCLUDE_DIRECTORIES(. ../database) +# Only compile these files if we have libxml2 +SET(add_xml_code "") +IF(LIBXML2_FOUND) + SET(add_xml_code + eurephia_xml.c + ../database/eurephiadb_mapping.c + ) +ENDIF(LIBXML2_FOUND) + + # # Create a static library # @@ -15,12 +25,11 @@ ADD_LIBRARY( eurephiacommon STATIC eurephia_getsym.c eurephia_log.c eurephia_values.c - eurephia_xml.c passwd.c randstr.c sha512.c ../database/eurephiadb.c - ../database/eurephiadb_mapping.c + ${add_xml_code} ) # Output name will be libeurephiacommon.a |