SHARE
TWEET

Untitled

a guest Oct 2nd, 2010 259 Never
  1. # Dependencies
  2. find_package      (PkgConfig)
  3. pkg_check_modules (DBUS       REQUIRED   dbus-1>=1.2.12)
  4. pkg_check_modules (DBUS-GLIB  REQUIRED   dbus-glib-1>=0.80)
  5. pkg_check_modules (FTDI       REQUIRED   libftdi>=0.13)
  6. pkg_check_modules (GLADE      REQUIRED   libglade-2.0>=2.6.4)
  7. pkg_check_modules (GTK2       REQUIRED   gtk+-2.0>=2.16.1)
  8. pkg_check_modules (HAL        REQUIRED   hal>=0.5.12)
  9.  
  10. # Main config
  11. add_definitions(-DGLADEFILE="${CMAKE_INSTALL_PREFIX}/${sharedir}/galinette_gtk.glade")
  12. add_definitions(-DGALINETTE_VERSION="${GALINETTE_VERSION}")
  13.  
  14. # Include & build
  15. include_directories   (. ${DBUS_INCLUDE_DIRS} ${DBUS-GLIB_INCLUDE_DIRS} ${GLADE_INCLUDE_DIRS} ${GTK2_INCLUDE_DIRS} ${HAL_INCLUDE_DIRS})
  16. add_executable        (galinette callbacks.c callbacks.h galinette-gtk.c galinette_gtk.glade galinette-gtk.h hal.c hal.h main.c)
  17. add_dependencies      (galinette libgalinette)
  18. target_link_libraries (galinette LINK_INTERFACE_LIBRARIES libgalinette ${DBUS_LIBRARIES} ${DBUS-GLIB_LIBRARIES} ${GLADE_LIBRARIES} ${GTK2_LIBRARIES} ${HAL_LIBRARIES})
  19.  
  20. # Other resources
  21. add_custom_target (galinette_gtk.glade)
  22.  
  23. # Install
  24. install (TARGETS galinette           DESTINATION ${bindir})
  25. install (FILES   galinette_gtk.glade DESTINATION ${sharedir})
RAW Paste Data
Top