LLWindow.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
- # -*- cmake -*-
- include(OpenGL)
- include(Prebuilt)
- if (STANDALONE)
- include(FindSDL)
- # This should be done by FindSDL. Sigh.
- mark_as_advanced(
- SDLMAIN_LIBRARY
- SDL_INCLUDE_DIR
- SDL_LIBRARY
- )
- else (STANDALONE)
- use_prebuilt_binary(mesa)
- if (LINUX AND VIEWER)
- use_prebuilt_binary(SDL)
- set (SDL_FOUND TRUE)
- set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/i686-linux)
- set (SDL_LIBRARY SDL)
- endif (LINUX AND VIEWER)
- endif (STANDALONE)
- if (SDL_FOUND)
- add_definitions(-DLL_SDL=1)
- include_directories(${SDL_INCLUDE_DIR})
- endif (SDL_FOUND)
- set(LLWINDOW_INCLUDE_DIRS
- ${GLEXT_INCLUDE_DIR}
- ${LIBS_OPEN_DIR}/llwindow
- )
- if (SERVER AND LINUX)
- set(LLWINDOW_LIBRARIES
- llwindowheadless
- )
- else (SERVER AND LINUX)
- set(LLWINDOW_LIBRARIES
- llwindow
- )
- endif (SERVER AND LINUX)