FindSTK.cmake 656 B

123456789101112131415161718192021
  1. FIND_PATH(STK_INCLUDE_DIR Stk.h /usr/include/stk /usr/local/include/stk ${CMAKE_INSTALL_PREFIX}/include/stk ${CMAKE_FIND_ROOT_PATH}/include/stk)
  2. FIND_LIBRARY(STK_LIBRARY NAMES stk PATH /usr/lib /usr/local/lib ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_FIND_ROOT_PATH}/lib)
  3. IF (STK_INCLUDE_DIR AND STK_LIBRARY)
  4. SET(STK_FOUND TRUE)
  5. ENDIF (STK_INCLUDE_DIR AND STK_LIBRARY)
  6. IF (STK_FOUND)
  7. IF (NOT STK_FIND_QUIETLY)
  8. MESSAGE(STATUS "Found STK: ${STK_LIBRARY}")
  9. SET(HAVE_STK TRUE)
  10. ENDIF (NOT STK_FIND_QUIETLY)
  11. ELSE (STK_FOUND)
  12. IF (STK_FIND_REQUIRED)
  13. MESSAGE(FATAL_ERROR "Could not find STK")
  14. ENDIF (STK_FIND_REQUIRED)
  15. ENDIF (STK_FOUND)