changed: build the App common library as a shared library

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2379 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva
2013-05-08 09:04:30 +00:00
committed by Knut Morten Okstad
parent 65fe7050a7
commit 688e8ecbc8

View File

@@ -45,9 +45,17 @@ ENDIF(NOT IFEM_CONFIGURED)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
INCLUDE(cmake/UseMultiArch.cmake)
# Common Navier-Stokes application sources
ADD_LIBRARY(CommonIFEM STATIC
BDF.C
ADD_LIBRARY(CommonIFEM BDF.C
Spalding.C
StabilizationUtils.C
TimeIntUtils.C)
TARGET_LINK_LIBRARIES(CommonIFEM ${IFEM_LIBRARIES})
SET_TARGET_PROPERTIES(CommonIFEM PROPERTIES
VERSION ${IFEM_VERSION}
SOVERSION ${IFEM_ABI_VERSION})
INSTALL(TARGETS CommonIFEM DESTINATION ${CMAKE_INSTALL_LIBDIR})
FILE(GLOB HEADERS *.h)
INSTALL(FILES ${HEADERS} DESTINATION include/IFEM)