Skip to content

Commit

Permalink
Renamed 'extras' to 'io' for better module clarity.
Browse files Browse the repository at this point in the history
Switched all references from 'extras' to 'io' throughout the codebase. Updated CMake configuration files and adjusted directory structures to reflect this change. This improves module naming consistency.
  • Loading branch information
matthew-mccall committed Aug 27, 2024
1 parent 02334d7 commit 5e23a5b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ if(OASIS_BUILD_TESTS AND NOT DEFINED EMSCRIPTEN)
add_subdirectory(tests)
endif()

if(OASIS_BUILD_EXTRAS)
add_subdirectory(extras)
if(OASIS_BUILD_IO)
add_subdirectory(io)
if (DEFINED EMSCRIPTEN)
target_link_libraries(OasisC PUBLIC OasisCExtras)
target_link_libraries(OasisC PUBLIC OasisCIO)
endif ()
endif()
17 changes: 0 additions & 17 deletions extras/CMakeLists.txt

This file was deleted.

2 changes: 0 additions & 2 deletions extras/tests/CMakeLists.txt

This file was deleted.

17 changes: 17 additions & 0 deletions io/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set(OasisC_IO_SOURCES
# cmake-format: sortable
src/FromString.cpp src/MathMLSerializer.cpp)

if (DEFINED EMSCRIPTEN)
add_library(OasisCIO OBJECT ${OasisC_IO_SOURCES})
else ()
add_library(OasisCIO ${OasisC_IO_SOURCES})
endif ()

target_include_directories(OasisCIO
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(OasisCIO PUBLIC Oasis::Oasis Oasis::IO)

if(OASIS_BUILD_TESTS)
add_subdirectory(tests)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions io/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_executable(OasisCIOTests main.c)
target_link_libraries(OasisCIOTests PUBLIC OasisC OasisCIO munit)
File renamed without changes.

0 comments on commit 5e23a5b

Please sign in to comment.