mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-10 13:29:38 +00:00
Fixed building through CMake
This commit is contained in:
parent
738e2d3bd1
commit
1c77057860
@ -11,6 +11,8 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
|||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 REQUIRED)
|
||||||
include_directories(${SDL2_INCLUDE_DIRS})
|
include_directories(${SDL2_INCLUDE_DIRS})
|
||||||
|
else()
|
||||||
|
include_directories("${PROJECT_SOURCE_DIR}/thirdparty/SDL2/include/")
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
find_package (Threads)
|
find_package (Threads)
|
||||||
endif()
|
endif()
|
||||||
|
@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#include "displayid.h"
|
#include "displayid.h"
|
||||||
#include <thirdparty/loguru/loguru.hpp>
|
#include <thirdparty/loguru/loguru.hpp>
|
||||||
#include "thirdparty/SDL2/include/SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
DisplayID::DisplayID() {
|
DisplayID::DisplayID() {
|
||||||
/* Initialize Apple monitor codes */
|
/* Initialize Apple monitor codes */
|
||||||
|
@ -33,7 +33,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#ifndef DISPLAY_ID_H
|
#ifndef DISPLAY_ID_H
|
||||||
#define DISPLAY_ID_H
|
#define DISPLAY_ID_H
|
||||||
|
|
||||||
#include "thirdparty/SDL2/include/SDL.h"
|
#include "SDL.h"
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
||||||
/** I2C bus states. */
|
/** I2C bus states. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user