Source

gd-libgd / examples / CMakeLists.txt

pajoye de77a4f 
pajoye cddcba1 

pajoye 41d830e 
pajoye f67452e 
pajoye 41d830e 
tabe 8287bb3 

pajoye cddcba1 

pajoye 9f7be65 
Takeshi Abe c893b03 
pajoye 9f7be65 


Takeshi Abe c893b03 
pajoye 9f7be65 

pajoye cddcba1 



pajoye 501248d 
tabe 1c6a7fc 





pajoye de77a4f 
pajoye 501248d 
pajoye 2e36ea5 
pajoye de77a4f 





include_directories (BEFORE "${GD_SOURCE_DIR}/src" "${CMAKE_BINARY_DIR}")

SET(TESTS_FILES
  arc
  crop
  gif
  nnquant
  tgaread
)

if (JPEG_FOUND)
	LIST(APPEND TESTS_FILES copyrotated flip)
endif (JPEG_FOUND)

if (TIFF_FOUND)
	LIST(APPEND TESTS_FILES	tiffread)
endif (TIFF_FOUND)

FOREACH(test_name ${TESTS_FILES})
	add_executable(${test_name} "${test_name}.c")
	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})
else (WIN32 AND NOT MINGW AND NOT MSYS)
	if (MINGW OR MSYS)
		add_executable(windows "windows.c")
		add_definitions("-mwindows")
		target_link_libraries(windows ${GD_LIB} stdc++ gdi32)
	endif (MINGW OR MSYS)
endif (WIN32 AND NOT MINGW AND NOT MSYS)