moving to magnum
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user