SHARE
TWEET

Boojum

a guest May 30th, 2009 1,513 Never
  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 )
RAW Paste Data
Top