Skip to content

Commit

Permalink
Merge pull request #2 from andrew-platt/f/CCT2-IFW_wrapper
Browse files Browse the repository at this point in the history
Updated error handling in ifw_c_lib
  • Loading branch information
nrmendoza authored May 25, 2021
2 parents e37356e + 92d7d67 commit 9f99279
Show file tree
Hide file tree
Showing 25 changed files with 1,168 additions and 11,724 deletions.
15 changes: 3 additions & 12 deletions modules/inflowwind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,8 @@ set(IFW_SOURCES
add_library(ifwlib ${IFW_SOURCES})
target_link_libraries(ifwlib nwtclibs)

# LINUX
add_library(ifw_c_lib driver/IFW_C.f90)

# MAC
# add_library(ifw_c_lib SHARED driver/IFW_C.f90 ${IFW_SOURCES})
# set_target_properties(ifw_c_lib PROPERTIES PREFIX "" SUFFIX ".dylib")

# WINDOWS
# add_library(ifw_c_lib SHARED driver/IFW_C.f90 ${IFW_SOURCES})
# set_target_properties(ifw_c_lib PROPERTIES PREFIX "" SUFFIX ".dll")

# c-bindings interface library
add_library(ifw_c_lib SHARED src/IfW_C.f90)
target_link_libraries(ifw_c_lib ifwlib)

set(IFW_DRIVER_SOURCES
Expand All @@ -73,7 +64,7 @@ set(IFW_DRIVER_SOURCES
add_executable(inflowwind_driver ${IFW_DRIVER_SOURCES})
target_link_libraries(inflowwind_driver ifwlib ${CMAKE_DL_LIBS})

install(TARGETS inflowwind_driver ifwlib
install(TARGETS inflowwind_driver ifwlib ifw_c_lib
EXPORT "${CMAKE_PROJECT_NAME}Libraries"
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
Expand Down
249 changes: 0 additions & 249 deletions modules/inflowwind/driver/IFW_C.f90

This file was deleted.

Loading

0 comments on commit 9f99279

Please sign in to comment.