Fixed building through CMake

This commit is contained in:
dingusdev 2021-09-12 08:08:22 -07:00
parent 738e2d3bd1
commit 1c77057860
3 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,8 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
if (NOT WIN32)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
else()
include_directories("${PROJECT_SOURCE_DIR}/thirdparty/SDL2/include/")
if (UNIX AND NOT APPLE)
find_package (Threads)
endif()

View File

@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "displayid.h"
#include <thirdparty/loguru/loguru.hpp>
#include "thirdparty/SDL2/include/SDL.h"
#include "SDL.h"
DisplayID::DisplayID() {
/* Initialize Apple monitor codes */

View File

@ -33,7 +33,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#ifndef DISPLAY_ID_H
#define DISPLAY_ID_H
#include "thirdparty/SDL2/include/SDL.h"
#include "SDL.h"
#include <cinttypes>
/** I2C bus states. */