Commit 362fb7cd authored by Cristiano Malossi's avatar Cristiano Malossi
Browse files

Fixing CMake files.

parent c6aa6e86
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(bc)
SET(HEADERS ${HEADERS} ${bc_HEADERS})
SET(SOURCES ${SOURCES} ${bc_SOURCES})
ADD_SUBDIRECTORY(function)
SET(HEADERS ${HEADERS} ${function_HEADERS})
SET(SOURCES ${SOURCES} ${function_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
IF (LIFEV_HAS_ZERODIMENSIONAL)
TRIBITS_ADD_LIBRARY(
lifevbcinterface0D
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS lifevbcinterfacecore
)
ENDIF()
\ No newline at end of file
SET(fem_HEADERS
fem/BCInterfaceData0D.hpp
fem/BCInterface3D.hpp
fem/BCInterface.hpp
fem/BCInterfaceData.hpp
fem/BCInterface0D.hpp
fem/BCInterfaceDefinitions.hpp
fem/BCInterfaceData1D.hpp
fem/BCInterfaceData3D.hpp
fem/BCInterface1D.hpp
SET(bc_HEADERS
bc/BCInterface0D.hpp
bc/BCInterfaceData0D.hpp
CACHE INTERNAL "")
SET(fem_SOURCES
fem/BCInterfaceData3D.cpp
fem/BCInterfaceData.cpp
fem/BCInterfaceData1D.cpp
fem/BCInterfaceData0D.cpp
SET(bc_SOURCES
bc/BCInterfaceData0D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${fem_HEADERS})
STRING(REPLACE "fem/" "" LOCAL_INC ${INC})
FOREACH(INC ${bc_HEADERS})
STRING(REPLACE "bc/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/fem"
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/0D/bc"
COMPONENT ${PACKAGE_NAME}
)
SET(function_HEADERS
function/BCInterfaceFunctionParserSolver0D.hpp
CACHE INTERNAL "")
SET(function_SOURCES
function/BCInterfaceFunctionParserSolver0D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${function_HEADERS})
STRING(REPLACE "function/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/0D/function"
COMPONENT ${PACKAGE_NAME}
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(bc)
SET(HEADERS ${HEADERS} ${bc_HEADERS})
SET(SOURCES ${SOURCES} ${bc_SOURCES})
ADD_SUBDIRECTORY(function)
SET(HEADERS ${HEADERS} ${function_HEADERS})
SET(SOURCES ${SOURCES} ${function_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
IF (LIFEV_HAS_ONEDFSI)
TRIBITS_ADD_LIBRARY(
lifevbcinterface1D
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS lifevbcinterfacecore
)
ENDIF()
\ No newline at end of file
SET(bc_HEADERS
bc/BCInterface1D.hpp
bc/BCInterfaceData1D.hpp
CACHE INTERNAL "")
SET(bc_SOURCES
bc/BCInterfaceData1D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${bc_HEADERS})
STRING(REPLACE "bc/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/1D/bc"
COMPONENT ${PACKAGE_NAME}
)
SET(function_HEADERS
function/BCInterfaceFunctionParserSolver1D.hpp
function/BCInterfaceFunctionSolverDefined1D.hpp
CACHE INTERNAL "")
SET(function_SOURCES
function/BCInterfaceFunctionParserSolver1D.cpp
function/BCInterfaceFunctionSolverDefined1D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${function_HEADERS})
STRING(REPLACE "function/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/1D/function"
COMPONENT ${PACKAGE_NAME}
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(bc)
SET(HEADERS ${HEADERS} ${bc_HEADERS})
SET(SOURCES ${SOURCES} ${bc_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
TRIBITS_ADD_LIBRARY(
lifevbcinterface3D
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS lifevbcinterfacecore
)
ADD_SUBDIRECTORY(function)
SET(bc_HEADERS
bc/BCInterface3D.hpp
bc/BCInterfaceData3D.hpp
CACHE INTERNAL "")
SET(bc_SOURCES
bc/BCInterfaceData3D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${bc_HEADERS})
STRING(REPLACE "bc/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/3D/bc"
COMPONENT ${PACKAGE_NAME}
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(fluid)
SET(HEADERS ${HEADERS} ${fluid_HEADERS})
SET(SOURCES ${SOURCES} ${fluid_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
IF (LIFEV_HAS_NAVIERSTOKES)
TRIBITS_ADD_LIBRARY(
lifevbcinterface3Dfluid
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS lifevbcinterface3D
)
ENDIF()
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(fsi)
SET(HEADERS ${HEADERS} ${fsi_HEADERS})
SET(SOURCES ${SOURCES} ${fsi_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
IF (LIFEV_HAS_FSI)
TRIBITS_ADD_LIBRARY(
lifevbcinterface3Dfsi
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS lifevbcinterface3D
)
ENDIF()
SET(fluid_HEADERS
fluid/BCInterfaceFunctionParserSolverFluid3D.hpp
CACHE INTERNAL "")
SET(fluid_SOURCES
fluid/BCInterfaceFunctionParserSolverFluid3D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${fluid_HEADERS})
STRING(REPLACE "fluid/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/3D/function/fluid"
COMPONENT ${PACKAGE_NAME}
)
SET(fsi_HEADERS
fsi/BCInterfaceFunctionParserSolverFSI3D.hpp
fsi/BCInterfaceFunctionSolverDefinedFSI3D.hpp
CACHE INTERNAL "")
SET(fsi_SOURCES
fsi/BCInterfaceFunctionParserSolverFSI3D.cpp
fsi/BCInterfaceFunctionSolverDefinedFSI3D.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${fsi_HEADERS})
STRING(REPLACE "fsi/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/3D/function/fsi"
COMPONENT ${PACKAGE_NAME}
)
......@@ -18,34 +18,13 @@ TRIBITS_ADD_SHOW_DEPRECATED_WARNINGS_OPTION()
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
ADD_SUBDIRECTORY(fem)
SET(HEADERS ${HEADERS} ${fem_HEADERS})
SET(SOURCES ${SOURCES} ${fem_SOURCES})
ADD_SUBDIRECTORY(function)
SET(HEADERS ${HEADERS} ${function_HEADERS})
SET(SOURCES ${SOURCES} ${function_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
TRIBITS_ADD_LIBRARY(
lifevbcinterface
HEADERS ${HEADERS}
SOURCES ${SOURCES}
)
# TRIBITS_ADD_TEST_DIRECTORIES(testsuite)
# TRIBITS_ADD_EXAMPLE_DIRECTORIES(examples)
ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(3D)
ADD_SUBDIRECTORY(1D)
ADD_SUBDIRECTORY(0D)
#
# Do standard postprocessing
......
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(HEADERS "")
SET(SOURCES "")
ADD_SUBDIRECTORY(bc)
SET(HEADERS ${HEADERS} ${bc_HEADERS})
SET(SOURCES ${SOURCES} ${bc_SOURCES})
ADD_SUBDIRECTORY(function)
SET(HEADERS ${HEADERS} ${function_HEADERS})
SET(SOURCES ${SOURCES} ${function_SOURCES})
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
# This is the list of files excluded from the tarball
TRIBITS_EXCLUDE_FILES()
# Add library target
TRIBITS_ADD_LIBRARY(
lifevbcinterfacecore
HEADERS ${HEADERS}
SOURCES ${SOURCES}
)
\ No newline at end of file
SET(bc_HEADERS
bc/BCInterface.hpp
bc/BCInterfaceData.hpp
bc/BCInterfaceDefinitions.hpp
CACHE INTERNAL "")
SET(bc_SOURCES
bc/BCInterfaceData.cpp
CACHE INTERNAL "")
SET(LOCAL_HEADERS)
FOREACH(INC ${bc_HEADERS})
STRING(REPLACE "bc/" "" LOCAL_INC ${INC})
SET(LOCAL_HEADERS ${LOCAL_HEADERS} ${LOCAL_INC})
ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/core/bc"
COMPONENT ${PACKAGE_NAME}
)
SET(function_HEADERS
function/BCInterfaceFunctionParser.hpp
function/BCInterfaceFunctionSolverDefined.hpp
function/BCInterfaceFunctionSolverDefinedFSI1D.hpp
function/BCInterfaceFunctionSolverDefinedFSI3D.hpp
function/BCInterfaceFunctionParserSolver.hpp
function/BCInterfaceFunctionParserSolver0D.hpp
function/BCInterfaceFunctionParserSolverFSI1D.hpp
function/BCInterfaceFunctionParserSolverFSI3D.hpp
function/BCInterfaceFunctionParserSolverFluid3D.hpp
function/BCInterfaceFunctionUserDefined.hpp
function/BCInterfaceFactory.hpp
function/BCInterfaceFunctionParserFileSolver.hpp
function/BCInterfaceFunction.hpp
function/BCInterfaceFunctionParser.hpp
function/BCInterfaceFunctionParserFile.hpp
function/BCInterfaceFunctionParserFileSolver.hpp
function/BCInterfaceFunctionParserSolver.hpp
function/BCInterfaceFunctionSolverDefined.hpp
function/BCInterfaceFunctionUserDefined.hpp
CACHE INTERNAL "")
SET(function_SOURCES
function/BCInterfaceFunctionParserSolver0D.cpp
function/BCInterfaceFunctionParserSolverFSI1D.cpp
function/BCInterfaceFunctionParserSolverFSI3D.cpp
function/BCInterfaceFunctionParserSolverFluid3D.cpp
function/BCInterfaceFunctionSolverDefinedFSI1D.cpp
function/BCInterfaceFunctionSolverDefinedFSI3D.cpp
CACHE INTERNAL "")
......@@ -33,6 +21,6 @@ ENDFOREACH()
INSTALL(
FILES ${LOCAL_HEADERS}
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/function"
DESTINATION "${${PROJECT_NAME}_INSTALL_INCLUDE_DIR}/lifev/bc_interface/core/function"
COMPONENT ${PACKAGE_NAME}
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment