3 # STEAM_LIBRARY, the library to link against
4 # STEAM_FOUND, if false, do not try to link to STEAM
5 # STEAM_INCLUDE_DIR, where to find headers.
7 IF(STEAM_LIBRARY AND STEAM_INCLUDE_DIR)
9 SET(Steam_FIND_QUIETLY TRUE)
13 FIND_PATH(STEAM_INCLUDE_DIR
17 $ENV{STEAM_DIR}/public
22 SET(STEAM_LIBNAME steam_api64)
23 SET(STEAM_RUNTIMENAME steam_api64.dll)
24 SET(STEAM_PATHNAME redistributable_bin/win64)
26 SET(STEAM_LIBNAME steam_api)
27 SET(STEAM_RUNTIMENAME steam_api.dll)
28 SET(STEAM_PATHNAME redistributable_bin)
32 SET(STEAM_LIBNAME steam_api)
33 SET(STEAM_RUNTIMENAME libsteam_api.dylib)
34 SET(STEAM_PATHNAME redistributable_bin/osx32)
36 SET(STEAM_LIBNAME steam_api)
37 SET(STEAM_RUNTIMENAME libsteam_api.so)
39 SET(STEAM_PATHNAME redistributable_bin/linux64)
41 SET(STEAM_PATHNAME redistributable_bin/linux32)
45 FIND_LIBRARY(STEAM_LIBRARY
46 NAMES ${STEAM_LIBNAME}
48 $ENV{STEAM_DIR}/${STEAM_PATHNAME}
51 FIND_FILE(STEAM_RUNTIME
52 NAMES ${STEAM_RUNTIMENAME}
54 $ENV{STEAM_DIR}/${STEAM_PATHNAME}
56 ${EXTERNAL_BINARY_PATH}
62 # Don't need to check STEAM_LIBRARY because we're dynamically loading Steam DLL
65 SET(STEAM_LIBRARIES ${STEAM_LIBRARY})
66 SET(STEAM_INCLUDE_DIRS ${STEAM_INCLUDE_DIR})
67 IF(NOT Steam_FIND_QUIETLY)
68 MESSAGE(STATUS "Found Steam: ${STEAM_INCLUDE_DIR} and ${STEAM_RUNTIME}")
71 IF(NOT Steam_FIND_QUIETLY)
72 MESSAGE(STATUS "Warning: Unable to find Steam!")