From 75f1e6f6b12f9fe461e4afa5bf3c998d21d48394 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sat, 11 Apr 2009 00:31:48 +0200 Subject: 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. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a281c9d..07b5cb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,4 +109,7 @@ ENDIF(NOT HAVE_PTHREAD_MUTEX_LOCK OR NOT HAVE_PTHREAD_MUTEX_UNLOCK) ADD_DEFINITIONS(-g -Wall) -SUBDIRS(${subdirs}) +ADD_LIBRARY(common STATIC IMPORTED) +SET_PROPERTY(TARGET common PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/common/libeurephiacommon.a) + +SUBDIRS(common ${subdirs}) -- cgit