SFML przeniesiono do innego folderu

This commit is contained in:
2024-12-04 11:47:47 +01:00
parent 5ccb29f27b
commit 29d3c11fd1
159 changed files with 10 additions and 10 deletions

View File

@@ -26,11 +26,11 @@ add_executable(LotoStatek main.cpp
sources/Rocket.cpp) sources/Rocket.cpp)
if(WIN32) if(WIN32)
set(SFML_ROOT "${CMAKE_SOURCE_DIR}/SFML") set(SFML_ROOT "${CMAKE_SOURCE_DIR}/lib/SFML")
# set(SFML_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/SFML/include") # set(SFML_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/SFML/include")
file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll")
file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 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 include_directories("${CMAKE_SOURCE_DIR}/lib/SFML/bin" "${CMAKE_SOURCE_DIR}/lib/SFML/include" "${CMAKE_SOURCE_DIR}/lib/SFML/lib/cmake/SFML") # dodane
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") # dodane set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") # dodane
find_package(SFML 2.6.2 COMPONENTS graphics window system audio REQUIRED) find_package(SFML 2.6.2 COMPONENTS graphics window system audio REQUIRED)
if(SFML_FOUND) if(SFML_FOUND)
@@ -38,9 +38,9 @@ if(WIN32)
target_link_libraries(LotoStatek ${SFML_LIBRARIES}) target_link_libraries(LotoStatek ${SFML_LIBRARIES})
endif() endif()
elseif(APPLE) elseif(APPLE)
find_package(SFML 2.6.2 COMPONENTS graphics window system REQUIRED) find_package(lib/SFML 2.6.2 COMPONENTS graphics window system REQUIRED)
target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system) target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system)
elseif(LINUX) elseif(LINUX)
find_package(SFML 2.6.2 COMPONENTS graphics window system REQUIRED) find_package(lib/SFML 2.6.2 COMPONENTS graphics window system REQUIRED)
target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system) target_link_libraries(LotoStatek sfml-graphics sfml-window sfml-audio sfml-system)
endif() endif()

Some files were not shown because too many files have changed in this diff Show More