diff options
author | wilson chen <willson.chenwx@gmail.com> | 2020-04-01 23:22:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 23:22:21 +0800 |
commit | b6b6e69363e111eadf6d88a965629dd40f7896f3 (patch) | |
tree | ff82efbbe1491bb11b3de08b65b264dc77d23d03 /tests | |
parent | f437a2243ee04567e4cd1e72bc3931c7d6832a26 (diff) | |
download | libgd-b6b6e69363e111eadf6d88a965629dd40f7896f3.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gdtest/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gdtest/CMakeLists.txt b/tests/gdtest/CMakeLists.txt index 4b05262..ff9fd7d 100644 --- a/tests/gdtest/CMakeLists.txt +++ b/tests/gdtest/CMakeLists.txt @@ -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}) |