From 171b100d6f9d372763b68037251a71d2d27013b7 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 8 Oct 2022 13:21:37 +0200 Subject: [PATCH] GLFW cmake stuff --- CMakeLists.txt | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf5e162..8ac4a80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,13 +5,10 @@ project(Hohmann VERSION 1.0) set(SOURCES src/main.cpp) add_executable(Hohmann ${SOURCES}) -set(INCLUDE_DIR include) -target_include_directories(Hohmann PRIVATE ${INCLUDE_DIR}) - -#set(INCLUDE_HEADER_FILES include/**/*.h include/**/*.hpp) - -find_package(OpenGL REQUIRED) -find_package(glfw3 REQUIRED) - -target_link_libraries( Hohmann OpenGL::GL glfw ) +# GLFW submodule +set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) +add_subdirectory(lib/glfw) +target_link_libraries(Hohmann glfw)