5 SET(SOURCES test_annotation_color.cpp test_color.cpp test_conserved_path.cpp
6 test_flp.cpp test_glseqbrowser.cpp test_glsequence.cpp
7 test_main.cpp test_mussa.cpp test_nway.cpp
8 test_sequence.cpp test_sequence_location.cpp )
10 GET_MUSSA_COMPILE_FLAGS(ALG_TEST_CFLAGS)
11 GET_MUSSA_LINK_FLAGS(ALG_TEST_LDFLAGS)
12 # dont you love the number of \ you need to make sure the " shows up in
14 SET(EXAMPLE_DIR ${CMAKE_SOURCE_DIR}/examples)
15 SET_SOURCE_FILES_PROPERTIES(
17 COMPILE_FLAGS "-DEXAMPLE_DIR=\\\"${EXAMPLE_DIR}\\\" ${ALG_TEST_CFLAGS}"
20 ADD_EXECUTABLE(unittest ${SOURCES})
21 ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
22 LINK_DIRECTORIES(${MUSSA_BINARY_DIR}/alg})
23 TARGET_LINK_LIBRARIES(unittest
24 ${BOOST_UNIT_TEST_LIBRARY}
25 ${BOOST_FILESYSTEM_LIBRARY}
29 SET_TARGET_PROPERTIES(
31 COMPILE_FLAGS "${ALG_TEST_CFLAGS}"
32 LINK_FLAGS "${ALG_TEST_LDFLAGS}"