Commit 41ac9964d43efa80fed5e35a5dcaa117510648ed
1 parent
2b8a1d84
compiling ricalc
Showing
1 changed file
with
11 additions
and
12 deletions
Show diff stats
FindRTS.cmake
1 | # Tries to find the RTS include directory | 1 | # Tries to find the RTS include directory |
2 | 2 | ||
3 | - FIND_PATH( RTS_INCLUDE_DIR NAMES rts_glShaderProgram.h | ||
4 | - PATHS | ||
5 | - ${CMAKE_CURRENT_SOURCE_DIR}/rts | ||
6 | - ${RTS_ROOT_PATH} | ||
7 | -) | ||
8 | - | ||
9 | -IF (RTS_FOUND) | ||
10 | - #The following deprecated settings are for backwards compatibility with CMake1.4 | ||
11 | - SET (RTS_INCLUDE_PATH ${RTS_INCLUDE_DIR}) | ||
12 | -ENDIF(RTS_FOUND) | ||
13 | - | ||
14 | -FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTS REQUIRED_VARS TRUE RTS_INCLUDE_DIR) | 3 | +include(FindPackageHandleStandardArgs) |
4 | + | ||
5 | +set(RTS_INCLUDE_DIR $ENV{RTS_PATH}) | ||
6 | + | ||
7 | +find_package_handle_standard_args(RTS DEFAULT_MSG RTS_INCLUDE_DIR) | ||
8 | + | ||
9 | +if(RTS_FOUND) | ||
10 | + set(RTS_INCLUDE_DIRS ${RTS_INCLUDE_DIR}) | ||
11 | +endif() | ||
12 | + | ||
13 | + |