Skip to content

Commit

Permalink
Use an object library for gipl source
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Dec 12, 2024
1 parent be59d5f commit afb9233
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GIPL/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
set(pkg_name gipl_model)

add_library(${bmigipl_lib} SHARED gipl.f90 bmigiplf.f90 bmi.f90)
add_library(gipl OBJECT gipl.f90)
add_library(${bmigipl_lib} SHARED bmigiplf.f90 bmi.f90 $<TARGET_OBJECTS:gipl>)

add_executable(run_${pkg_name} gipl.f90 main.f90)
add_executable(run_${pkg_name} main.f90 $<TARGET_OBJECTS:gipl>)
add_executable(run_bmi${pkg_name} bmi_main.f90)
target_link_libraries(run_bmi${pkg_name} ${bmigipl_lib})

Expand Down

0 comments on commit afb9233

Please sign in to comment.