aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYaroslav Gevorkov <yaroslav.gevorkov@desy.de>2018-05-23 23:41:10 +0200
committerThomas White <taw@physics.org>2018-05-24 15:29:03 +0200
commit998e9126b3454a9b8a47b20efefe7263e24571e2 (patch)
tree44912052dce0a71b37bc58524ee55701a014252a /tests
parente5f48fe09f1901d70342a9dde418f7b6843afdcc (diff)
adapt cmake to link to fdip includes in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index df98b6a1..1fa8012a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -51,7 +51,11 @@ add_test(prof2d_check prof2d_check)
add_executable(ring_check ring_check.c)
target_include_directories(ring_check PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(ring_check ${COMMON_LIBRARIES})
+target_link_libraries(ring_check PRIVATE ${COMMON_LIBRARIES})
+if (FDIP_FOUND)
+ target_include_directories(ring_check PRIVATE ${FDIP_INCLUDES})
+ target_link_libraries(ring_check PRIVATE ${FDIP_LIBRARIES})
+endif (FDIP_FOUND)
add_test(ring_check ring_check)
add_executable(symmetry_check symmetry_check.c)