Blame view

tools/maca/tests/CMakeLists.txt 765 Bytes
Jan Lupa authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PROJECT( test )

include_directories( ${CMAKE_SOURCE_DIR} )

add_definitions(-DLIBMACA_TEST_DATA_DIR="${PROJECT_SOURCE_DIR}/")

add_executable(tests
	main.cpp
	compareconv.cpp
	conv.cpp
	morph_basic.cpp
)

find_package(Toki 1.0.0 REQUIRED)
set(LIBS ${LIBS} ${Toki_LIBRARY})

find_package(Corpus2 1.0.9 REQUIRED)
set(LIBS ${LIBS} ${Corpus2_LIBRARIES})

target_link_libraries ( tests maca ${Boost_LIBRARIES} ${LIBS})

include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})

#configure_file(test-sanity.sh ${CMAKE_CURRENT_BINARY_DIR})
#add_custom_target(test tests COMMAND ./test-sanity.sh small)
add_custom_target(test tests)
add_custom_target(test-verbose ./tests --log_level=message)
#add_custom_target(test-large ./test-sanity.sh large)