CMakeLists.txt 490 Bytes
Newer Older
1
2
3
4
5
6
set(SRC
  slimIceDyn.cpp
  slimIceDynSteady.cpp
  slimLim.cpp
)

Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
7
8
set(LIBS "")

9
10
option(ENABLE_LIM "Enable Lim" OFF)
if(ENABLE_LIM)
lambrechts's avatar
lambrechts committed
11
12
  add_subdirectory(LIM3)
  dg_set_module_option(HAVE_LIM "Lim")
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
13
14
  list(APPEND LIBS "${CMAKE_CURRENT_BINARY_DIR}/LIM3/libLIM.a")
  list(APPEND LIBS "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
15
16
endif(ENABLE_LIM)

Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
17
dg_add_module(dgSlimIce "${SRC}" "${LIBS}")
Jonathan Lambrechts's avatar
Jonathan Lambrechts committed
18
dg_add_swig_module(slimIce slimIce.i dgSlimIce)
19
#dg_add_test_directory(tests alice.pestiaux@uclouvain.be)