Remove hard-coded references to paths and libraries
This commit is contained in:
parent
17323f0092
commit
b1e98e9d3e
|
@ -1,13 +1,21 @@
|
||||||
cmake_minimum_required( VERSION 3.0 )
|
cmake_minimum_required( VERSION 3.0 )
|
||||||
project( FaceCam2D VERSION 0.1.0 )
|
project( FaceCam2D VERSION 0.1.0 )
|
||||||
find_package( OpenCV REQUIRED )
|
find_package( OpenCV REQUIRED )
|
||||||
|
message (STATUS "Found OpenCV at: " ${OpenCV_INCLUDE_DIRS} )
|
||||||
find_package( OpenGL REQUIRED )
|
find_package( OpenGL REQUIRED )
|
||||||
|
message (STATUS "Found OpenGL at: " ${OPENGL_INCLUDE_DIR} )
|
||||||
find_package( GLEW REQUIRED )
|
find_package( GLEW REQUIRED )
|
||||||
|
message (STATUS "Found GLEW at: " ${GLEW_INCLUDE_DIRS} )
|
||||||
find_package( glm REQUIRED )
|
find_package( glm REQUIRED )
|
||||||
|
message (STATUS "Found glm at: " ${GLM_INCLUDE_DIRS} )
|
||||||
find_package( FreeGLUT REQUIRED )
|
find_package( FreeGLUT REQUIRED )
|
||||||
|
message (STATUS "Found FreeGLUT at: " ${GLUT_INCLUDE_DIR} )
|
||||||
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
||||||
include_directories( /usr/local/include )
|
include_directories( ${OPENGL_INCLUDE_DIR} )
|
||||||
|
include_directories( ${GLEW_INCLUDE_DIRS} )
|
||||||
|
include_directories( ${GLM_INCLUDE_DIRS} )
|
||||||
|
include_directories( ${GLUT_INCLUDE_DIR} )
|
||||||
include_directories( ${PROJECT_SOURCE_DIR}/src )
|
include_directories( ${PROJECT_SOURCE_DIR}/src )
|
||||||
add_executable( fc2d src/main.cpp src/graphics.cpp src/modelpart.cpp src/cv.cpp )
|
add_executable( fc2d src/main.cpp src/graphics.cpp src/modelpart.cpp src/cv.cpp )
|
||||||
target_link_libraries( fc2d ${OpenCV_LIBS} ${OPENGL_LIBRARIES} glut GLEW)
|
target_link_libraries( fc2d ${OpenCV_LIBS} ${OPENGL_LIBRARIES} FreeGLUT::freeglut GLEW::glew )
|
||||||
set( CMAKE_BUILD_TYPE Debug )
|
set( CMAKE_BUILD_TYPE Debug )
|
||||||
|
|
Loading…
Reference in a new issue