From b15acf692faa2982b4f2ae482857692acb4374c6 Mon Sep 17 00:00:00 2001 From: Marco Biasini <marco.biasini@unibas.ch> Date: Tue, 12 Jul 2011 15:16:33 +0200 Subject: [PATCH] only build img io unit test when img support is compiled in --- modules/io/tests/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/io/tests/CMakeLists.txt b/modules/io/tests/CMakeLists.txt index abbd58914..f10be7bc4 100644 --- a/modules/io/tests/CMakeLists.txt +++ b/modules/io/tests/CMakeLists.txt @@ -4,13 +4,14 @@ set(OST_IO_UNIT_TESTS test_io_pdb.cc test_io_crd.cc test_io_sdf.cc - test_io_img.cc test_pir.cc test_iomanager.cc tests.cc test_star_parser.cc ) - +if (ENABLE_IMG) + list(APPEND OST_IO_UNIT_TESTS test_io_img.cc) +endif() ost_unittest(MODULE io SOURCES "${OST_IO_UNIT_TESTS}" LINK ost_mol ost_seq) -- GitLab