Skip to content
Snippets Groups Projects
Commit 5203c914 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

cleanup opengl import - confine to gfx module

parent a7debb23
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.13)
project(FGGL VERSION 0.1 LANGUAGES CXX)
......@@ -13,8 +13,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package( glfw3 )
if ( NOT glfw3_FOUND )
include(FetchContent)
set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
if ( FGGL_WAYLAND )
set(GLFW_USE_WAYLAND True)
endif ()
......
......@@ -14,7 +14,7 @@ target_include_directories(fggl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../)
# Graphics backend
add_subdirectory(gfx)
target_link_libraries(fggl glfw ${OPENGL_gl_LIBRARY} GLEW)
target_link_libraries(fggl glfw)
# Debug backend
add_subdirectory(debug)
......
......@@ -2,6 +2,7 @@
# OpenGL Backend
find_package( OpenGL REQUIRED )
include_directories( ${OPENGL_INCLUDE_DIR} )
target_link_libraries(fggl OpenGL::OpenGL GLEW)
# GLEW
find_package( GLEW REQUIRED )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment