Getting closer to a subanalysis mode
[mussa.git] / alg / test / CMakeLists.txt
1 SET(SOURCES test_annotation_color.cpp test_color.cpp test_conserved_path.cpp
2             test_flp.cpp test_glseqbrowser.cpp test_glsequence.cpp
3             test_main.cpp test_mussa.cpp test_nway.cpp 
4             test_sequence.cpp test_sequence_location.cpp )
5
6 # dont you love the number of \ you need to make sure the " shows up in
7 # the C compiler?
8 SET(EXAMPLE_DIR ${CMAKE_SOURCE_DIR}/examples)
9 SET_SOURCE_FILES_PROPERTIES(${SOURCES} 
10                            COMPILE_FLAGS "-DEXAMPLE_DIR=\\\"${EXAMPLE_DIR}\\\""
11                            )
12
13 FIND_PACKAGE(OpenGL)
14 INCLUDE(FindBoost)
15
16 ADD_EXECUTABLE(unittest ${SOURCES})
17 ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
18 LINK_DIRECTORIES(${MUSSA_BINARY_DIR}/alg})
19 TARGET_LINK_LIBRARIES(unittest 
20                         ${BOOST_UNIT_TEST_LIBRARY} 
21                         ${BOOST_FILESYSTEM_LIBRARY}
22                         mussa_core 
23                         ${OPENGL_gl_LIBRARY})