Implement serialize for sequence
[mussa.git] / alg / test / CMakeLists.txt
1 FIND_PACKAGE(OpenGL)
2 INCLUDE(FindBoost)
3 INCLUDE(Platform)
4
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 )
9
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
13 # the C compiler?
14 SET(EXAMPLE_DIR ${CMAKE_SOURCE_DIR}/examples)
15 SET_SOURCE_FILES_PROPERTIES(
16   ${SOURCES} 
17   COMPILE_FLAGS "-DEXAMPLE_DIR=\\\"${EXAMPLE_DIR}\\\" ${ALG_TEST_CFLAGS}"
18 )
19
20 ADD_EXECUTABLE(unittest ${SOURCES})
21 ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
22 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/alg})
23 TARGET_LINK_LIBRARIES(unittest 
24                         mussa_core 
25                         ${BOOST_UNIT_TEST_LIBRARY} 
26                         ${BOOST_FILESYSTEM_LIBRARY}
27                         ${BOOST_SERIALIZATION_LIBRARY}
28                         ${OPENGL_gl_LIBRARY})
29
30 SET_TARGET_PROPERTIES(
31   unittest PROPERTIES
32     COMPILE_FLAGS "${ALG_TEST_CFLAGS}"
33     LINK_FLAGS "${ALG_TEST_LDFLAGS}"
34 )
35