summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortabe <none@none>2013-02-09 09:54:03 +0900
committertabe <none@none>2013-02-09 09:54:03 +0900
commit1c6a7fc9652853715500ff7c63737e339ad17099 (patch)
treeef467bdd5dfcbecb529da67614fd9732ea2fefb1 /examples
parentae031d2ea21cdb2911fc95377d1b830ed477c92d (diff)
downloadlibgd-1c6a7fc9652853715500ff7c63737e339ad17099.tar.gz
add dependency on libm for copyrotated (refs gd-libgd #8)
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index d920d8f..99fc84e 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -35,6 +35,12 @@ FOREACH(test_name ${TESTS_FILES})
target_link_libraries (${test_name} ${GD_LIB})
ENDFOREACH(test_name)
+if(JPEG_FOUND)
+ if(UNIX)
+ target_link_libraries(copyrotated m)
+ endif(UNIX)
+endif(JPEG_FOUND)
+
if (WIN32 AND NOT MINGW AND NOT MSYS)
add_executable(windows WIN32 "windows.c")
target_link_libraries (windows ${GD_LIB})