Revision 68f93c1d6ac3273a21b2f437bb02ee6122b357e9 authored by Wenqing Wang on 11 December 2015, 12:21:47 UTC, committed by Wenqing Wang on 11 December 2015, 12:57:46 UTC
1 parent c648a68
CMakeLists.txt
#Source files grouped by a directory
GET_SOURCE_FILES(SOURCES_NUMLIB)
set(SOURCES ${SOURCES_NUMLIB})
GET_SOURCE_FILES(SOURCES_FEM Fem)
set(SOURCES ${SOURCES} ${SOURCES_FEM})
GET_SOURCE_FILES(SOURCES_FEM_COORDINATESMAPPING Fem/CoordinatesMapping)
set(SOURCES ${SOURCES} ${SOURCES_FEM_COORDINATESMAPPING})
GET_SOURCE_FILES(SOURCES_FEM_FINTIEELEMENT Fem/FiniteElement)
set(SOURCES ${SOURCES} ${SOURCES_FEM_FINTIEELEMENT})
GET_SOURCE_FILES(SOURCES_FEM_INTEGRATION Fem/Integration)
set(SOURCES ${SOURCES} ${SOURCES_FEM_INTEGRATION})
GET_SOURCE_FILES(SOURCES_FEM_SHAPEFUNCTION Fem/ShapeFunction)
set(SOURCES ${SOURCES} ${SOURCES_FEM_SHAPEFUNCTION})
GET_SOURCE_FILES(SOURCES_TIMESTEP TimeStepping)
GET_SOURCE_FILES(SOURCES_TIMESTEP_ALGORITHMS TimeStepping/Algorithms)
set(SOURCES ${SOURCES} ${SOURCES_TIMESTEP} ${SOURCES_TIMESTEP_ALGORITHMS})
GET_SOURCE_FILES(SOURCES_FUNCTION Function)
set(SOURCES ${SOURCES} ${SOURCES_FUNCTION})
GET_SOURCE_FILES(SOURCES_DISTRIBUTION Distribution)
set(SOURCES ${SOURCES} ${SOURCES_DISTRIBUTION})
# Create the library
add_library(NumLib STATIC ${SOURCES})
set_target_properties(NumLib PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(NumLib INTERFACE
BaseLib
GeoLib
MathLib
MeshLib
MeshGeoToolsLib
logog
)
if(TARGET Eigen)
add_dependencies(NumLib Eigen)
endif()
if(TARGET Boost)
add_dependencies(NumLib Boost)
endif()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...