cvs: gd /libgd/src CMakeLists.txt
[email protected] ("Takeshi Abe") Fri, 12 Dec 2008 17:09:39 -0000
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvstabe1229101779@cvsserver> |
tabe Fri Dec 12 17:09:39 2008 UTC
Modified files:
/gd/libgd/src CMakeLists.txt
Log:
define the installation targets.
http://cvs.php.net/viewvc.cgi/gd/libgd/src/CMakeLists.txt?r1=1.20&r2=1.21&diff_format=u
Index: gd/libgd/src/CMakeLists.txt
diff -u gd/libgd/src/CMakeLists.txt:1.20 gd/libgd/src/CMakeLists.txt:1.21
--- gd/libgd/src/CMakeLists.txt:1.20 Sun Nov 23 14:32:35 2008
+++ gd/libgd/src/CMakeLists.txt Fri Dec 12 17:09:39 2008
@@ -76,4 +76,15 @@
target_link_libraries(${GD_LIB} ${FREETYPE_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${XPM_LIBRARIES} ${FONTCONFIG_LIBRARIES})
target_link_libraries(${GD_LIB_STATIC} ${FREETYPE_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${XPM_LIBRARIES} ${FONTCONFIG_LIBRARIES})
+set(GD_PROGRAMS annotate gdparttopng gdtopng gd2copypal gd2topng pngtogd pngtogd2 webpng gd2togif gdcmpgif giftogd2)
+foreach(program ${GD_PROGRAMS})
+ add_executable(${program} ${program}.c)
+ target_link_libraries(${program} ${GD_LIB})
+endforeach(program)
+install(TARGETS ${GD_LIB} ${GD_LIB_STATIC} ${GD_PROGRAMS}
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
+install(PROGRAMS bdftogd DESTINATION bin)
+install(FILES gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h gd_color_map.h DESTINATION include)