moving to magnum

This commit is contained in:
2023-01-18 16:05:44 -08:00
parent 4d64366c14
commit 7e75cfa015
8 changed files with 194 additions and 43 deletions

View File

@@ -11,7 +11,7 @@ set(SFML_ROOT root CACHE STRING "User specified path")
set(SFML_COMPONENTS graphics window system network audio)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(SFML 2.1 COMPONENTS ${SFML_COMPONENTS} REQUIRED)
find_package(SFML 2.5 COMPONENTS ${SFML_COMPONENTS} REQUIRED)
message(STATUS "SFML found: ${SFML_FOUND}")
# Include the directories for the main program, GL, CL and SFML's headers
@@ -22,7 +22,7 @@ include_directories(include)
file(GLOB SOURCES "*.cpp")
file(GLOB HEADERS "*.h")
add_executable(${PNAME} ${SOURCES})
add_executable(${PNAME} ${SOURCES} Bird.cpp Bird.h Pipe.cpp Pipe.h)
# Link CL, GL, and SFML
target_link_libraries (${PNAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})