Update CMake files after switch from CppUnit to Catch

Don't look for CppUnit library nor build it any longer, but just use the
Catch headers under 3rdparty/catch.
This commit is contained in:
Vadim Zeitlin
2017-12-09 18:31:39 +01:00
parent d37f758ae9
commit 82b92c6d8f
3 changed files with 1 additions and 156 deletions

View File

@@ -693,11 +693,8 @@ function(wx_add_test name)
list(INSERT test_src 0 "${wxSOURCE_DIR}/tests/dummy.cpp")
endif()
add_executable(${name} ${test_src})
target_include_directories(${name} PRIVATE "${wxSOURCE_DIR}/tests" ${CPPUNIT_INCLUDE_DIR})
target_include_directories(${name} PRIVATE "${wxSOURCE_DIR}/tests" "${wxSOURCE_DIR}/3rdparty/catch/include")
wx_exe_link_libraries(${name} base net)
target_link_libraries(${name}
${CPPUNIT_LIBRARIES}
)
if(wxBUILD_SHARED)
target_compile_definitions(${name} PRIVATE WXUSINGDLL)
endif()