Update TODO
[dueringa_WikiWalker.git] / test / CMakeLists.txt
blob8a69c407d2a19e2273105526f47f15eab66c4df2
1 cmake_minimum_required(VERSION 3.1.0)
2 project(WikiWalker)
4 find_package(CURL REQUIRED)
5 find_package(UnitTest++ REQUIRED)
7 add_executable(execute_tests
8     $<TARGET_OBJECTS:WikiWalkerSource>
9     ${CMAKE_CURRENT_SOURCE_DIR}/ArticleTests.cpp
10     ${CMAKE_CURRENT_SOURCE_DIR}/CollectionTests.cpp
11     ${CMAKE_CURRENT_SOURCE_DIR}/CollectionMergeTests.cpp
12     ${CMAKE_CURRENT_SOURCE_DIR}/CurlUrlCreatorTests.cpp
13     ${CMAKE_CURRENT_SOURCE_DIR}/JsonDeserializerTests.cpp
14     ${CMAKE_CURRENT_SOURCE_DIR}/JsonSerializerTests.cpp
15     ${CMAKE_CURRENT_SOURCE_DIR}/JsonSerializeDeserializeTests.cpp
16     ${CMAKE_CURRENT_SOURCE_DIR}/WikimediaJsonToArticleConverterTests.cpp
17     ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
18     ${CMAKE_CURRENT_SOURCE_DIR}/ToGraphvizWriterTests.cpp
19     ${CMAKE_CURRENT_SOURCE_DIR}/StringUtilsTest.cpp
20     
21     ${CMAKE_CURRENT_SOURCE_DIR}/SerializerTestDefines.h
23     ${CMAKE_CURRENT_SOURCE_DIR}/../lib/jsoncpp/jsoncpp.cpp
26 target_include_directories(execute_tests
27     PRIVATE
28     ${UT_INCLUDE_DIRS}
29     ${CURL_INCLUDE_DIRS}
30     ${UTPP_INCLUDE_DIRS}
31     ${CMAKE_CURRENT_SOURCE_DIR}/../inc/
34 target_link_libraries(execute_tests
35     jsoncpp
36     lurlparser
37     ${UT_LDFLAGS}
38     ${CURL_LIBRARIES}
39     "UnitTest++"
42 add_test(NAME unittest COMMAND execute_tests)