cmake_minimum_required(VERSION 2.8)
project(thesis)

find_package(PkgConfig)
pkg_check_modules(OPENCV opencv)
find_package(OpenGL REQUIRED)


add_definitions(-std=c++11 -g)

include_directories(GLFW)
link_directories(lib)


add_executable(computeDistances computeDistances.cpp)
target_link_libraries(computeDistances ${OPENCV_LIBRARIES} boost_filesystem boost_system)


add_executable(extractImages extractImages.cpp)
target_link_libraries(extractImages ${OPENCV_LIBRARIES})


add_executable(viewer viewer.cpp fishEyeMapper.cpp render.cpp gl/shader.cpp gl/texture.cpp)
target_link_libraries(viewer ${OPENCV_LIBRARIES} ${OPENGL_LIBRARY} GLFW_303 GLEW_190 X11 Xxf86vm Xi Xrandr pthread)

