Skip to content

Commit

Permalink
Updated CMakeLists and FindGLUT.cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorpm committed Nov 28, 2014
1 parent a8429bd commit 99faa74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ set(BIN_INSTALL_DIR "bin")
set(LIB_INSTALL_DIR "lib")
set(INCLUDE_INSTALL_DIR "include/${PROJECT_NAME}")

if(WIN32)
set(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE OFF)
endif()

if(UNIX)
set(BUILD_SHARED_LIBS true)
endif()
Expand Down
16 changes: 14 additions & 2 deletions cmake/modules/FindGLUT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,23 @@ if (GLUT_FOUND)
# If not, we need some way to figure out what platform we are on.
set( GLUT_LIBRARIES
${GLUT_glut_LIBRARY}
${GLUT_Xmu_LIBRARY}
${GLUT_Xi_LIBRARY}
${GLUT_cocoa_LIBRARY}
)

if (GLUT_Xmu_LIBRARY)
set( GLUT_LIBRARIES
${GLUT_LIBRARIES}
${GLUT_Xmu_LIBRARY}
)
endif()

if (GLUT_Xi_LIBRARY)
set( GLUT_LIBRARIES
${GLUT_LIBRARIES}
${GLUT_Xi_LIBRARY}
)
endif()

#The following deprecated settings are for backwards compatibility with CMake1.4
set (GLUT_LIBRARY ${GLUT_LIBRARIES})
set (GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIR})
Expand Down

0 comments on commit 99faa74

Please sign in to comment.