Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Boojum

By: a guest on May 30th, 2009  |  syntax: None  |  size: 0.71 KB  |  views: 1,398  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CMAKE_MINIMUM_REQUIRED( VERSION 2.4 )
  2.  
  3. PROJECT( nanocrunch )
  4. ADD_EXECUTABLE( nanocrunch nanocrunch.cpp )
  5. INCLUDE( FindImageMagick )
  6.  
  7. FIND_PACKAGE( ImageMagick COMPONENTS Magick++ )
  8. IF( ImageMagick_FOUND )
  9.     INCLUDE_DIRECTORIES( ${ImageMagick_INCLUDE_DIRS} )
  10.     TARGET_LINK_LIBRARIES( nanocrunch ${ImageMagick_LIBRARIES} )
  11. ENDIF( ImageMagick_FOUND )
  12.  
  13. FIND_PATH(GMP_INCLUDE_DIR NAMES gmp.h)
  14. FIND_PATH(GMPXX_INCLUDE_DIR NAMES gmpxx.h)
  15. FIND_LIBRARY(GMP_LIBRARIES NAMES gmp)
  16. FIND_LIBRARY(GMPXX_LIBRARIES NAMES gmpxx)
  17. IF( GMPXX_LIBRARIES )
  18.     INCLUDE_DIRECTORIES( ${GMP_INCLUDE_DIR} ${GMPXX_INCLUDE_DIR} )
  19.     TARGET_LINK_LIBRARIES( nanocrunch ${GMP_LIBRARIES} ${GMPXX_LIBRARIES} )
  20. ENDIF( GMPXX_LIBRARIES )