Commit 9297e9cd authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Complete Fortran Bindings and unit tests.

parent 4a10ec64
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -358,10 +358,15 @@ macro (add_tool_target target lang)
            set_source_files_properties (${CMAKE_CURRENT_SOURCE_DIR}/${target}.${lang}
                                         PROPERTIES
                                         LANGUAGE OBJC
                                         SKIP_PRECOMPILE_HEADERS ON
            )
        endif ()
    endif ()
    if (${lang} STREQUAL "c")
        set_source_files_properties (${CMAKE_CURRENT_SOURCE_DIR}/${target}.${lang}
                                     PROPERTIES
                                     SKIP_PRECOMPILE_HEADERS ON
        )
    endif ()

    target_link_libraries (${target}
                           PUBLIC
+6 −4
Original line number Diff line number Diff line
@@ -12,10 +12,12 @@ target_sources (graph_c
                PRIVATE
                $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/graph_c_binding.cpp>
)
if (${USE_METAL})
    set_source_files_properties (${CMAKE_CURRENT_SOURCE_DIR}/graph_c_binding.cpp
                                 PROPERTIES
                                 LANGUAGE OBJCXX
    )
endif ()
target_compile_features (graph_c
                         PUBLIC
                         c_std_17
+1 −1
Original line number Diff line number Diff line
@@ -3108,7 +3108,7 @@ extern "C" {
    }

//------------------------------------------------------------------------------
///  @brief Copy data to a host buffer.
///  @brief Print a value from nodes.
///
///  @param[in] c         The graph C context.
///  @param[in] index     Particle index to print.
+2 −2
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ extern "C" {
                                 const size_t max_iter);

//------------------------------------------------------------------------------
///  @brief Compile the work items
///  @brief Compile the work items.
///
///  @param[in] c The graph C context.
//------------------------------------------------------------------------------
@@ -469,7 +469,7 @@ extern "C" {
                            void *destination);

//------------------------------------------------------------------------------
///  @brief Copy data to a host buffer.
///  @brief Print a value from nodes.
///
///  @param[in] c         The graph C context.
///  @param[in] index     Particle index to print.
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@ target_link_libraries (graph_f
                       PUBLIC
                       graph_c
)
target_compile_options (graph_f
                        PUBLIC
                        $<$<COMPILE_LANGUAGE:Fortran>:-cpp>
)
target_sources (graph_f
                PRIVATE
                $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/graph_fortran_binding.f90>
Loading