Hey there,
I'm trying to run a simple program using SFML, it has been done without any issues on Linux but can't get it to work on Windows.
I've tried placing the DLLs in the same directory as the executable, but still no success.
This is my cmake:
cmake_minimum_required(VERSION 3.5)
project(QuadTreeCulling)
cmake_policy(SET CMP0074 NEW)
add_executable(QuadTreeCulling main.cpp)
target_compile_features(QuadTreeCulling PRIVATE cxx_std_17)
target_include_directories(QuadTreeCulling
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}../../include>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../../source/
)
target_link_libraries(QuadTreeCulling
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-graphics-d-2.dll
${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-window-d-2.dll
${CMAKE_CURRENT_SOURCE_DIR}/../../SFML/Windows/sfml-system-d-2.dll
)
The CMake generates the executable with no problems but then i get an error message when running it:
"The code execution cannot proceed because sfml-system-d-2.dll was not found. Reinstalling the program may fix this problem."
I get one of these for each DLL.
Thank you in advance, I hope I've detailed my issue clearly enough,
HoC