diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-25 08:47:23 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-25 08:47:23 (GMT) |
commit | c7a7f910d4f85b0f3566b16098720e2101572c7f (patch) | |
tree | fe7c2b3041306b0c6f49338bdcc7aa4b9f111a19 /src/lib/CMakeLists.txt | |
parent | 2ae890547ab92eefa31307b48676917b5fb15871 (diff) |
Split the fortran wrapper into another file.
Do not keep the fortran wrapper in the main tng_io.c file.
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rw-r--r-- | src/lib/CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 416e546..b1378ec 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -1,13 +1,14 @@ -add_library(tng_io tng_io.c md5.c) +if(TNG_BUILD_FORTRAN) + add_library(tng_io tng_io.c md5.c tng_io_fortran.c) +else() + add_library(tng_io tng_io.c md5.c) +endif() + if(HAVE_INTTYPES_H) set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H) endif() -if(TNG_BUILD_FORTRAN) - set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS TNG_BUILD_FORTRAN) -endif() - if(ZLIB_FOUND) set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_ZLIB) target_link_libraries(tng_io tng_compress ${ZLIB_LIBRARIES}) |