summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpajoye <none@none>2008-04-17 17:03:45 +0000
committerpajoye <none@none>2008-04-17 17:03:45 +0000
commit501248d3ccf9289942aa4a787b8edbbbaad3acfe (patch)
tree4bc3d8239c09c0ad26ec915fad693a231560fd14 /examples
parentdea4bed17bf37e9132e0ed7634a73f8a77922de5 (diff)
downloadlibgd-501248d3ccf9289942aa4a787b8edbbbaad3acfe.tar.gz
- add "win32" flag for the windows GUI example
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 33c0221..95b06ca 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -18,12 +18,6 @@ SET(TESTS_FILES
gif
)
-if (WIN32)
- SET(TESTS_FILES
- "${TESTS_FILES}"
- windows
- )
-endif (WIN32)
if (JPEG_FOUND)
SET(TESTS_FILES
"${TESTS_FILES}"
@@ -43,3 +37,8 @@ FOREACH(test_name ${TESTS_FILES})
add_executable(${test_name} "${test_name}.c")
target_link_libraries (${test_name} ${GD_LIB})
ENDFOREACH(test_name)
+
+if (WIN32)
+ add_executable(windows WIN32 "windows.c")
+ target_link_libraries (${test_name} ${GD_LIB})
+endif (WIN32)