]> git.treefish.org Git - seamulator.git/blob - cmake_modules/FindSTK.cmake
make some noise
[seamulator.git] / cmake_modules / FindSTK.cmake
1 FIND_PATH(STK_INCLUDE_DIR Stk.h
2     /usr/include/stk
3     /usr/local/include/stk
4     ${CMAKE_INSTALL_PREFIX}/include/stk
5     ${CMAKE_FIND_ROOT_PATH}/include/stk)
6
7 FIND_LIBRARY(STK_LIBRARY NAMES stk
8     PATH /usr/lib /usr/local/lib ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_FIND_ROOT_PATH}/lib)
9
10 IF (STK_INCLUDE_DIR AND STK_LIBRARY)
11     SET(STK_FOUND TRUE)
12 ENDIF (STK_INCLUDE_DIR AND STK_LIBRARY)
13
14 IF (STK_FOUND)
15     IF (NOT STK_FIND_QUIETLY)
16         MESSAGE(STATUS "Found STK: ${STK_LIBRARY}")
17         SET(HAVE_STK TRUE)
18     ENDIF (NOT STK_FIND_QUIETLY)
19 ELSE (STK_FOUND)
20     IF (STK_FIND_REQUIRED)
21         MESSAGE(FATAL_ERROR "Could not find STK")
22     ENDIF (STK_FIND_REQUIRED)
23 ENDIF (STK_FOUND)