[CMake] this is what i got struck

jojelino jojelino at gmail.com
Thu Jan 28 04:30:23 EST 2010


i want to include gtk dependency libraries with gtk itself. but 
followings was error-prone.
set(a "")
find_library(a NAMES gdk_pixbuf-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gdk-win32-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gtk-win32-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gdi32)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES imm32)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES shell32)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES ole32)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES uuid)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES pangocairo-1.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES pangoft2-1.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES pangowin32-1.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gdi32)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES freetype)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES fontconfig)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES pango-1.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES m)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES atk-1.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES cairo)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gio-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gobject-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gmodule-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES gthread-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES glib-2.0)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
find_library(a NAMES intl)
set(GTKLIBS ${GTKLIBS} ${a})
set(a "")
mark_as_advanced(GTKLIBS)
target_link_libraries(dev9null ${GTKLIBS})
target_link_libraries(CDVDnull ${GTKLIBS})

I wondered why this brute-force based method doesn't work with cmake.
it complains it isn't from project so it can't compile. what a mess. 
cmake, this is not what you need to care for!
how we can deceive cmake so that i can work without problem?



More information about the CMake mailing list