From 56b5466f014d9f7c3662544713bd53670cd8e32f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 23 Aug 2017 20:33:34 +0100 Subject: Applied modernize rules and fixed build. Applied clang-tidy modernize rules and fixed the CMakeLists.txt file so that it also linked against the SDL2 library. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f084702c..b92ec79a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,16 +67,16 @@ endif() # find libraries find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) +include(FindPkgConfig) +pkg_search_module(SDL2 REQUIRED sdl2) # set include directory -include_directories(${YAGE_INCLUDE_DIR} - ${YAGE_INCLUDE_DIR}/Physics/ - ${YAGE_INCLUDE_DIR}/Math/) +include_directories(${YAGE_INCLUDE_DIR}) # make it a static library add_library(${PROJECT_NAME} ${YAGE_SOURCES}) -set(YAGE_LIB_DEP_L "yage;${OPENGL_LIBRARIES};${GLEW_LIBRARIES};${SDL2_LIBRAIRES}") +set(YAGE_LIB_DEP_L "yage;${OPENGL_LIBRARIES};${GLEW_LIBRARIES};${SDL2_LIBRARIES}") message("${YAGE_LIB_DEP_L}") -- cgit