set (MODULE_NAME GL)if(WIN32)# Windows MSVC/Intel compiler hits:# - dwonload free libraries package glew and glut/freeglut from the Internet# - add x64/x86 binaries with glew and glut/freeglut libraries (.lib) to the directory lib/x64 or lib/x86.# Include folder libs as cmake argument -DCLConform_GL_LIBRARIES_DIR=lib\x64 while solution generation# - GL headers files should be added to project source directory and GL subdirectory# - Add .dll files: glut glew to the test binary location.list(APPEND CLConform_LIBRARIES opengl32 freeglut glew32)else(WIN32)list(APPEND CLConform_LIBRARIES GL glut GLEW GLU)endif(WIN32)set (${MODULE_NAME}_SOURCESmain.cpptest_buffers.cpptest_image_methods.cpptest_images_1D.cpptest_images_1Darray.cpptest_images_2D.cpptest_images_2Darray.cpptest_images_3D.cpptest_images_depth.cpptest_images_getinfo_common.cpptest_images_multisample.cpptest_images_read_common.cpptest_images_write_common.cpptest_renderbuffer.cpptest_renderbuffer_info.cpptest_fence_sync.cpphelpers.cpp../../test_common/gl/helpers.cpp)if (WIN32)list (APPEND ${MODULE_NAME}_SOURCES ../../test_common/gl/setup_win32.cpp)else(WIN32)list (APPEND ${MODULE_NAME}_SOURCES ../../test_common/gl/setup_x11.cpp)endif(WIN32)# Compiling GLEW along with the project if the compiler is MINGW.# The mingw linker was giving weird errors while linking to glew32.lib generated by# MSVC.if(MINGW)list (APPEND ${MODULE_NAME}_SOURCES GLEW/glew.c)set_source_files_properties(${${MODULE_NAME}_SOURCES}COMPILE_FLAGS -DGLEW_STATIC)include_directories("./GLEW/")endif(MINGW)set_source_files_properties(${${MODULE_NAME}_SOURCES}PROPERTIES LANGUAGE CXX)# Add the current folder to the include path, so that# test_common/gl/setup_x11.cpp can find testBase.h which is located in this# folder.include_directories(${CMAKE_CURRENT_SOURCE_DIR})include(../CMakeCommon.txt)