X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=CMakeLists.txt;h=bf773547fca9d73a0ef52d295b55116cf9ca2e7a;hb=1ae540a1277e34572b9cbf92065bab52ede1f0f7;hp=d636bcbed99e90d76a3c5e3b5cdf57e23487bd23;hpb=de4ba5af8a3510f90f8faa15e5d4b30a6302e847;p=freeglut diff --git a/CMakeLists.txt b/CMakeLists.txt index d636bcb..bf77354 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,9 @@ OPTION(BUILD_SHARED_LIBS "Build FreeGLUT shared library." ON) OPTION(BUILD_STATIC_LIBS "Build FreeGLUT static library." ON) FIND_PACKAGE(OpenGL REQUIRED) - INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${OPENGL_INCLUDE_DIR}) +LIST(APPEND LIBS ${OPENGL_gl_LIBRARY}) +LIST(APPEND LIBS m) IF(WIN32) MESSAGE(WARNING "Insecure CRT warnings hidden (might want to fix these)") @@ -172,8 +173,8 @@ INSTALL(FILES ${FREEGLUT_HEADERS} DESTINATION include/GL) # Optionally build demos, on by default. option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." ON ) -SET(DEMO_LIBS ${OPENGL_LIBRARY} ${LIBS}) -SET(DEMO_LIBS ${LIBS} m) +SET(DEMO_LIBS ${OPENGL_glu_LIBRARY} ${LIBS}) +LIST(APPEND DEMO_LIBS m) MACRO(ADD_DEMO name) if( FREEGLUT_BUILD_DEMOS )