No more SHARED option in ADD_LIBRARY, so we will be able to build static libraries.

This commit is contained in:
Damien Dupuis 2010-02-02 09:58:17 +00:00
parent 91363d5cc7
commit 4d27f3075b
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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})