rename _LIB to _LIBRARY to be more consistent with cmake
[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 test_sequence.cpp)
4
5 # dont you love the number of \ you need to make sure the " shows up in
6 # the C compiler?
7 SET(EXAMPLE_DIR ${CMAKE_SOURCE_DIR}/examples)
8 SET_SOURCE_FILES_PROPERTIES(${SOURCES} 
9                            COMPILE_FLAGS "-DEXAMPLE_DIR=\\\"${EXAMPLE_DIR}\\\""
10                            )
11
12 FIND_PACKAGE(OpenGL)
13 INCLUDE(FindBoost)
14
15 ADD_EXECUTABLE(unittest ${SOURCES})
16 ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
17 LINK_DIRECTORIES(${MUSSA_BINARY_DIR}/alg})
18 TARGET_LINK_LIBRARIES(unittest 
19                         ${BOOST_UNIT_TEST_LIBRARY} 
20                         ${BOOST_FILESYSTEM_LIBRARY}
21                         mussa_core 
22                         ${OPENGL_gl_LIBRARY})