mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +01:00
8329020858
Remove copy of Encodings/testsuite/data, it doesn't exists in the source folder.
27 lines
1003 B
CMake
27 lines
1003 B
CMake
# Sources
|
|
file(GLOB SRCS_G "src/*.cpp")
|
|
POCO_SOURCES_AUTO( TEST_SRCS ${SRCS_G})
|
|
|
|
# Headers
|
|
file(GLOB_RECURSE HDRS_G "src/*.h" )
|
|
POCO_HEADERS_AUTO( TEST_SRCS ${HDRS_G})
|
|
|
|
POCO_SOURCES_AUTO_PLAT( TEST_SRCS OFF
|
|
src/WinDriver.cpp
|
|
)
|
|
|
|
POCO_SOURCES_AUTO_PLAT( TEST_SRCS WINCE
|
|
src/WinCEDriver.cpp
|
|
)
|
|
|
|
add_executable(Encodings-testrunner ${TEST_SRCS} )
|
|
if(ANDROID)
|
|
add_test(NAME Encodings WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
|
|
COMMAND ${CMAKE_COMMAND} -DANDROID_NDK=${ANDROID_NDK} "-DTEST_FILES=${CMAKE_CURRENT_SOURCE_DIR}/data;" -DLIBRARY_DIR=${CMAKE_BINARY_DIR}/lib -DUNITTEST=${CMAKE_BINARY_DIR}/bin/Encodings-testrunner -DTEST_PARAMETER=-all -P ${CMAKE_SOURCE_DIR}/cmake/ExecuteOnAndroid.cmake)
|
|
else()
|
|
add_test(NAME Encodings WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND Encodings-testrunner -all)
|
|
endif()
|
|
#set_target_properties(Encodings-testrunner PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
|
target_link_libraries(Encodings-testrunner PUBLIC Poco::Encodings CppUnit)
|
|
|