Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Update to Aruco v1.2.5
Browse files Browse the repository at this point in the history
[+] FindFreeGLUT.cmake to detect FreeGLUT
[!] Fixed detection of GLUT and FreeGLUT
[!] Fixed detection and use of OpenMP
  • Loading branch information
kapecp committed Nov 6, 2014
1 parent a50b239 commit 59a727f
Show file tree
Hide file tree
Showing 49 changed files with 3,850 additions and 1,610 deletions.
46 changes: 36 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# - added ALL flag to ADD_CUSTOM_TARGET in generateDoc.cmake
# (not the best solution, but it works)
# - use install commands from dist.cmake
# - fixed OpenMP detection
# - added FreeGLUT.cmake script
# - fixed GLUT and FreeGLUT detection
#
# ----------------------------------------------------------------------------
# Basic Configuration
Expand Down Expand Up @@ -48,18 +51,37 @@ ENDIF()
#FIND OPENGL LIBRARY. In Android, there is no need since it is included
IF(NOT ANDROID_CREATION)
find_package(OpenGL)
find_package(GLUT)#standard package
MESSAGE(STATUS "OPENGL_gl_LIBRARY=${OPENGL_gl_LIBRARY}")

MESSAGE(STATUS "GLUT_FOUND=${GLUT_FOUND} OPENGL_gl_LIBRARY=${OPENGL_gl_LIBRARY} GLUT_HEADER=${GLUT_HEADER}")
IF(NOT GLUT_FOUND) #else, freeglut
FIND_LIBRARY(GLUT_glut_LIBRARY NAMES freeglut)
MESSAGE(STATUS "GLUT_glut_LIBRARY=${GLUT_glut_LIBRARY}")
find_package(GLUT)#standard package
IF(GLUT_FOUND) #else, freeglut
MESSAGE(STATUS "GLUT_FOUND=${GLUT_FOUND} GLUT_HEADER=${GLUT_HEADER}")
ELSE() #else, freeglut
find_package(FreeGLUT)
MESSAGE(STATUS "FREEGLUT_LIBRARIES=${FREEGLUT_LIBRARIES}")
ENDIF()
IF ( (NOT GLUT_glut_LIBRARY AND NOT GLUT_FOUND) OR NOT OPENGL_gl_LIBRARY)
set(GL_FOUND "NO")
ELSE()

IF ( OPENGL_FOUND AND (GLUT_FOUND OR FREEGLUT_FOUND) )
set(GL_FOUND "YES")
set (OPENGL_LIBS ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${GLUT_glut_LIBRARY})
set(OPENGL_LIBS ${OPENGL_LIBRARIES})
if(GL_FOUND)
list(APPEND OPENGL_LIBS ${GLUT_LIBRARIES})
elseif(FREEGLUT_FOUND)
list(APPEND OPENGL_LIBS ${FREEGLUT_LIBRARIES})
endif()
ELSE()
set(GL_FOUND "NO")
ENDIF()
ENDIF()

#Omp
if(WIN32)

ELSE()
FIND_PACKAGE(OpenMP)
IF(OPENMP_FOUND)
add_definitions(-DUSE_OMP -fopenmp)
set (REQUIRED_LIBRARIES ${REQUIRED_LIBRARIES} -lgomp)
ENDIF()
ENDIF()

Expand Down Expand Up @@ -235,7 +257,11 @@ ENDIF()
#------------------------------------------------
ADD_SUBDIRECTORY(src)
IF(NOT ANDROID_CREATION)
ADD_SUBDIRECTORY(utils)
OPTION(BUILD_UTILS "Set to ON to build/install utilities" ON)
IF(BUILD_UTILS)
ADD_SUBDIRECTORY(utils)
ADD_SUBDIRECTORY(utils_hrm)
ENDIF()
ENDIF()

# ----------------------------------------------------------------------------
Expand Down
295 changes: 0 additions & 295 deletions CMakeLists.txt~

This file was deleted.

Loading

0 comments on commit 59a727f

Please sign in to comment.