Aktualizacja do SFML 2.6.2
This commit is contained in:
@@ -28,15 +28,15 @@ if(WIN32)
|
||||
file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
|
||||
include_directories("${CMAKE_SOURCE_DIR}/SFML/bin" "${CMAKE_SOURCE_DIR}/SFML/include" "${CMAKE_SOURCE_DIR}/SFML/lib/cmake/SFML") # dodane
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") # dodane
|
||||
find_package(SFML 2.5.1 COMPONENTS graphics window system audio REQUIRED)
|
||||
find_package(SFML 2.6.2 COMPONENTS graphics window system audio REQUIRED)
|
||||
if(SFML_FOUND)
|
||||
include_directories(${SFML_INCLUDE_DIR})
|
||||
target_link_libraries(LotoStatek ${SFML_LIBRARIES})
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
find_package(SFML 2.5.1 COMPONENTS graphics window system REQUIRED)
|
||||
find_package(SFML 2.6.2 COMPONENTS graphics window system REQUIRED)
|
||||
target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system)
|
||||
elseif(LINUX)
|
||||
find_package(SFML 2.5.1 COMPONENTS graphics window system REQUIRED)
|
||||
find_package(SFML 2.6.2 COMPONENTS graphics window system REQUIRED)
|
||||
target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system)
|
||||
endif()
|
||||
Reference in New Issue
Block a user