Blame view

FindRTS.cmake 417 Bytes
3f56f1f9   dmayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  # Tries to find the RTS include directory

  

    FIND_PATH( RTS_INCLUDE_DIR NAMES rts_glShaderProgram.h

      PATHS

  	${CMAKE_CURRENT_SOURCE_DIR}/rts

  	${RTS_ROOT_PATH}

  )

   

  IF (RTS_FOUND)    

    #The following deprecated settings are for backwards compatibility with CMake1.4

    SET (RTS_INCLUDE_PATH ${RTS_INCLUDE_DIR})

  ENDIF(RTS_FOUND)

  

  FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTS REQUIRED_VARS TRUE RTS_INCLUDE_DIR)