-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lionel Untereiner
committed
Jul 25, 2023
1 parent
7675435
commit 787c2ed
Showing
15 changed files
with
2,885 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(src) | ||
# add_subdirectory(tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.