diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-04-11 00:31:48 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-04-11 00:31:48 +0200 |
commit | 75f1e6f6b12f9fe461e4afa5bf3c998d21d48394 (patch) | |
tree | 77420f3134189dc5bce5b0d3fe77826b66f702aa /plugin/CMakeLists.txt | |
parent | 10fd2098416c78958a199f31480bd363eaa76212 (diff) | |
download | eurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.tar.gz eurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.tar.xz eurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.zip |
Rewritten CMake rules to build common/ as static library
This static library is later on linked in. This is to avoid recompiling
the same source files several times during a complete eurephia
compilation.
Diffstat (limited to 'plugin/CMakeLists.txt')
-rw-r--r-- | plugin/CMakeLists.txt | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 2ac083e..21ab780 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -1,20 +1,12 @@ PROJECT(eurephia-plugin C) cmake_minimum_required(VERSION 2.6) SET(eurephia_auth_SRC - ../common/certinfo.c eurephia-auth.c eurephia.c - ../database/eurephiadb.c eurephiadb_session.c - firewall/eurephiafw.c - firewall/eurephiafw_helpers.c - ../common/eurephia_getsym.c - ../common/eurephia_log.c - ../common/eurephia_values.c + firewall/eurephiafw.c + firewall/eurephiafw_helpers.c ../common/eurephiadb_session_common.c - ../common/passwd.c - ../common/sha512.c - ../common/randstr.c ) SET(subdirs "") IF(FW_IPTABLES) @@ -44,11 +36,11 @@ ENDIF(NOT HAVE_RT_MQ_OPEN OR NOT HAVE_RT_MQ_CLOSE OR NOT HAVE_RT_MQ_UNLINK OR NO INCLUDE_DIRECTORIES(../common ../database ./firewall .) ADD_LIBRARY(eurephia-auth MODULE ${eurephia_auth_SRC}) -TARGET_LINK_LIBRARIES(eurephia-auth dl pthread rt crypto) +TARGET_LINK_LIBRARIES(eurephia-auth dl pthread rt crypto common) SET_TARGET_PROPERTIES(eurephia-auth PROPERTIES OUTPUT_NAME eurephia-auth PREFIX "") INSTALL(TARGETS eurephia-auth LIBRARY DESTINATION ${PLUGINDIR}) IF(subdirs) - SUBDIRS(${subdirs}) + ADD_SUBDIRECTORY(${subdirs}) ENDIF(subdirs) |