if (WIN32) add_definitions ( -D__WIN__ -D__MS__ ) elseif (APPLE) add_definitions ( -D__AGL__ -D__UNIX__ ) find_library (CARBON_LIBRARY Carbon) set (CMAKE_OSX_ARCHITECTURES i386) else () add_definitions ( -D__X11__ -D__UNIX__ ) endif () include_directories( ${GLEXT_INCLUDE_DIR} ${OPENGL_INCLUDE_PATH} ${piglit_SOURCE_DIR}/tests/util ) piglit_add_executable (glean dsconfig.cpp dsfilt.cpp dsurf.cpp environ.cpp geomrend.cpp geomutil.cpp glutils.cpp main.cpp misc.cpp options.cpp rc.cpp tapi2.cpp tbasic.cpp tbinding.cpp test.cpp tfbo.cpp tfragprog1.cpp tglsl1.cpp tmultitest.cpp tpixelformats.cpp tpointatten.cpp tpointsprite.cpp tshaderapi.cpp tstencil2.cpp ttexcombine.cpp ttexcombine4.cpp ttexcube.cpp ttexenv.cpp ttexgen.cpp ttexture_srgb.cpp ttexunits.cpp tvertarraybgra.cpp tvertattrib.cpp tvertprog1.cpp winsys.cpp gl.cpp image_misc.cpp pack.cpp reg.cpp unpack.cpp basic.cpp lex.cpp ../util/rgb9e5.c ) target_link_libraries (glean piglitutil_${piglit_target_api} ${OPENGL_gl_LIBRARY} ) if (WIN32) elseif (APPLE) target_link_libraries (glean ${CARBON_LIBRARY} ) else () target_link_libraries (glean ${X11_X11_LIB} ) endif ()