tests/gdtest/CMakeLists.txt: include readdir.c under win (#520)

@pierrejoye has implemented opendir, closedir and readdir in readdir.c, which is only used under windows platform. These functions are enabled by modifiying the tests/gdTest/CMakeLists.txt
master
wilson chen 2020-04-01 23:22:21 +08:00 committed by GitHub
parent f437a2243e
commit b6b6e69363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
add_definitions(-DGDTEST_TOP_DIR="${CMAKE_CURRENT_SOURCE_DIR}/..")
add_library (gdTest STATIC gdtest.c)
SET(GDTEST_FILES gdtest.c)
if(WIN32)
LIST(APPEND GDTEST_FILES readdir.c)
endif()
add_library(gdTest STATIC ${GDTEST_FILES})
target_link_libraries(gdTest ${GD_LIB})