1 cmake_minimum_required(VERSION 3.1.0)
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
21 ${CMAKE_CURRENT_SOURCE_DIR}/SerializerTestDefines.h
23 ${CMAKE_CURRENT_SOURCE_DIR}/../lib/jsoncpp/jsoncpp.cpp
26 target_include_directories(execute_tests
31 ${CMAKE_CURRENT_SOURCE_DIR}/../inc/
34 target_link_libraries(execute_tests
42 add_test(NAME unittest COMMAND execute_tests)