mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 13:43:41 +00:00
minor improvements with includes
This commit is contained in:
parent
4ae462136e
commit
78f1b11d01
@ -19,16 +19,11 @@ set(ZLIB_ROOT ${PROJECT_SOURCE_DIR}/extern/zlib)
|
||||
set(ZLIB_LIBRARY zlib)
|
||||
add_subdirectory(extern/libpng EXCLUDE_FROM_ALL)
|
||||
|
||||
include_directories(
|
||||
${PROJECT_INCLUDE_DIR}
|
||||
${SDL2_INCLUDE_DIRS}
|
||||
${SDL2_IMAGE_INCLUDE_DIRS}
|
||||
${ZLIB_INCLUDE_DIRS}
|
||||
${PNG_INCLUDE_DIRS})
|
||||
|
||||
file(GLOB_RECURSE SOURCES ${PROJECT_SOURCE_DIR}/src/*.cpp)
|
||||
add_executable(${PROJECT_NAME} ${SOURCES})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
SDL2::SDL2main
|
||||
SDL2::SDL2-static
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "SDL.h"
|
||||
#include <SDL.h>
|
||||
|
||||
class GameObject
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user