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.txtmaster
parent
f437a2243e
commit
b6b6e69363
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue