Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Untereiner committed Jul 25, 2023
1 parent 7675435 commit 787c2ed
Show file tree
Hide file tree
Showing 15 changed files with 2,885 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(src)
# add_subdirectory(tests)
69 changes: 69 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

################################
# Fesapi
################################
if(DEFINED FESAPI_DIR)
message(STATUS "FESAPI_DIR = ${FESAPI_DIR}")

find_and_register(NAME FesapiCpp
INCLUDE_DIRECTORIES ${FESAPI_DIR}/include
LIBRARY_DIRECTORIES ${FESAPI_DIR}/lib
HEADER fesapi/nsDefinitions.h
LIBRARIES FesapiCpp
DEPENDS hdf5)

set(FESAPI_DIR ON CACHE BOOL "")
else()
message(STATUS "Not using Fesapi")
endif()

message(STATUS "Adding RESQML (Readers / MeshGenerator) sources and headers")

#
# Specify all headers
#
set(componentHeaders
RESQMLOutput.hpp
RESQMLWriterInterface.hpp
RESQMLMeshGenerator.hpp
RESQMLUtilities.hpp
)

#
# Specify all sources
#
set(componentSources
RESQMLUtilities.cpp
RESQMLWriterInterface.cpp
RESQMLMeshGenerator.cpp
RESQMLOutput.cpp
)

#
# Specify dependencies
#
# set(dependencyList mesh)
set(dependencyList FesapiCpp)

if(GEOSX_BUILD_SHARED_LIBS)
set(dependencyList ${dependencyList} geosx_core)
else()
set(dependencyList ${dependencyList} ${geosx_core_libs})
endif()

message("adding RESQML library")

blt_add_library(NAME resqml
SOURCES ${componentSources}
HEADERS ${componentHeaders}
DEPENDS_ON ${dependencyList}
OBJECT ${GEOSX_BUILD_OBJ_LIBS}
)

target_compile_definitions(resqml PUBLIC "HAS_UNCAUGHT_EXCEPTIONS")

# target_link_libraries(resqml PUBLIC FesapiCpp)
# target_include_directories(resqml PUBLIC ${FESAPI_DIR}/include)
target_include_directories(resqml PUBLIC ${CMAKE_CURRENT_LIST_DIR})

geosx_add_code_checks(PREFIX resqml)
Loading

0 comments on commit 787c2ed

Please sign in to comment.