Browse Source

Platform: forgot to rename *WindowContext -> *Application in some places.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
9f20c8bca4
  1. 12
      src/Platform/CMakeLists.txt

12
src/Platform/CMakeLists.txt

@ -16,7 +16,7 @@ if(WITH_GLUTAPPLICATION)
install(FILES GlutApplication.h DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Platform)
install(TARGETS MagnumGlutApplication DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR})
else()
message(FATAL_ERROR "GLUT library, required by GlutApplication, was not found. Set WITH_GLUTWINDOWCONTEXT to OFF to skip building it.")
message(FATAL_ERROR "GLUT library, required by GlutApplication, was not found. Set WITH_GLUTAPPLICATION to OFF to skip building it.")
endif()
endif()
@ -31,7 +31,7 @@ if(WITH_SDL2APPLICATION)
install(FILES Sdl2Application.h DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Platform)
install(TARGETS MagnumSdl2Application DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR})
else()
message(FATAL_ERROR "SDL2 library, required by Sdl2Application, was not found. Set WITH_SDL2WINDOWCONTEXT to OFF to skip building it.")
message(FATAL_ERROR "SDL2 library, required by Sdl2Application, was not found. Set WITH_SDL2APPLICATION to OFF to skip building it.")
endif()
endif()
@ -59,8 +59,8 @@ if(WITH_GLXAPPLICATION)
install(TARGETS MagnumGlxApplication DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR})
endif()
# X/EGL window context
if(WITH_XEGLWINDOWCONTEXT)
# X/EGL application
if(WITH_XEGLAPPLICATION)
set(NEED_ABSTRACTXAPPLICATION 1)
set(NEED_EGLCONTEXT 1)
add_library(MagnumXEglApplication STATIC
@ -75,7 +75,7 @@ endif()
if(NEED_ABSTRACTXAPPLICATION)
find_package(X11)
if(NOT X11_FOUND)
message(FATAL_ERROR "X11 library, required by some contexts, was not found. Set WITH_*X*WINDOWCONTEXT to OFF to skip building them.")
message(FATAL_ERROR "X11 library, required by some contexts, was not found. Set WITH_*X*APPLICATION to OFF to skip building them.")
endif()
add_library(MagnumAbstractXApplication OBJECT AbstractXApplication.cpp)
# X11 macros are a mess, disable warnings for C-style casts
@ -95,7 +95,7 @@ endif()
if(NEED_EGLCONTEXT)
find_package(EGL)
if(NOT EGL_FOUND)
message(FATAL_ERROR "EGL library, required by some window contexts, was not found. Set WITH_*EGL*WINDOWCONTEXT to OFF to skip building them.")
message(FATAL_ERROR "EGL library, required by some window contexts, was not found. Set WITH_*EGL*APPLICATION to OFF to skip building them.")
endif()
add_library(MagnumEglContextHandler OBJECT EglContextHandler.cpp)
# X11 macros are a mess, disable warnings for C-style casts

Loading…
Cancel
Save