X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=496f9f78cd2fb4a82141b0cf9ec0c4ed561e4901;hb=b079f35351d4dbe5e4bb23bccc1c4338b2f538e3;hp=4b51708dbccd08f058b37b6a42b1e78f4258378d;hpb=5987929085564f4e42b3985d939d1af3f8c3231a;p=chaz%2Ftint2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b51708..496f9f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,10 @@ pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 ) pkg_check_modules( IMLIB2 REQUIRED imlib2 ) find_library( RT_LIBRARY rt ) +if( NOT (X11_FOUND AND PANGOCAIRO_FOUND AND PANGO_FOUND AND CAIRO_FOUND AND GLIB2_FOUND AND GOBJECT2_FOUND AND IMLIB2_FOUND) ) + message( FATAL_ERROR "Not all dependencies fulfilled. See http://code.google.com/p/tint2/wiki/Install" ) +endif( NOT (X11_FOUND AND PANGOCAIRO_FOUND AND PANGO_FOUND AND CAIRO_FOUND AND GLIB2_FOUND AND GOBJECT2_FOUND AND IMLIB2_FOUND) ) + string( REPLACE ";" " " FLAGS_REPLACED "${IMLIB2_LDFLAGS}" ) set( CMAKE_REQUIRED_FLAGS "${FLAGS_REPLACED}" ) check_library_exists( "${IMLIB2_LIBRARIES}" "imlib_context_set_display" "${IMLIB2_LIBRARY_DIRS}" IMLIB_BUILD_WITH_X ) @@ -91,8 +95,8 @@ if( RT_LIBRARY ) endif( RT_LIBRARY ) add_dependencies( tint2 version ) -set_target_properties( tint2 PROPERTIES COMPILE_FLAGS -Wall ) -#set_target_properties(tint2 PROPERTIES LINK_FLAGS -Wl,--as-needed) +set_target_properties( tint2 PROPERTIES COMPILE_FLAGS "-Wall -pthread" ) +set_target_properties(tint2 PROPERTIES LINK_FLAGS "-pthread" ) install( TARGETS tint2 DESTINATION bin ) install( FILES sample/tint2rc DESTINATION ${SYSCONFDIR}/xdg/tint2 )