From 4d27f3075bf47cb9a6bae6c26dc39f5fbf3e95b6 Mon Sep 17 00:00:00 2001 From: Damien Dupuis Date: Tue, 2 Feb 2010 09:58:17 +0000 Subject: [PATCH] No more SHARED option in ADD_LIBRARY, so we will be able to build static libraries. --- vlsisapd/agds/CMakeLists.txt | 2 +- vlsisapd/openChams/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlsisapd/agds/CMakeLists.txt b/vlsisapd/agds/CMakeLists.txt index 33c4228f..4688dbc0 100644 --- a/vlsisapd/agds/CMakeLists.txt +++ b/vlsisapd/agds/CMakeLists.txt @@ -3,7 +3,7 @@ INCLUDE_DIRECTORIES(${CHAMS_SOURCE_DIR}/agds) SET ( includes GdsLibrary.h GdsStructure.h GdsElement.h GdsRectangle.h ) SET ( cpps GdsLibrary.cpp GdsStructure.cpp GdsRectangle.cpp ) -ADD_LIBRARY(agds SHARED ${cpps}) +ADD_LIBRARY(agds ${cpps}) INSTALL(TARGETS agds DESTINATION /lib) INSTALL(FILES ${includes} DESTINATION /include/io/agds) diff --git a/vlsisapd/openChams/CMakeLists.txt b/vlsisapd/openChams/CMakeLists.txt index 1865776c..75b581b9 100644 --- a/vlsisapd/openChams/CMakeLists.txt +++ b/vlsisapd/openChams/CMakeLists.txt @@ -3,7 +3,7 @@ INCLUDE_DIRECTORIES(${CHAMS_SOURCE_DIR}/openChams ${LIBXML2_INCLUDE_DIR}) SET ( includes Circuit.h Netlist.h Instance.h Net.h Name.h Parameters.h Schematic.h OpenChamsException.h ) SET ( cpps Circuit.cpp Netlist.cpp Instance.cpp Net.cpp Name.cpp Parameters.cpp Schematic.cpp ) -ADD_LIBRARY(openChams SHARED ${cpps}) +ADD_LIBRARY(openChams ${cpps}) TARGET_LINK_LIBRARIES(openChams ${LIBXML2_LIBRARIES})