Commit 73b85204 authored by Elias Leinenweber's avatar Elias Leinenweber
Browse files

Ajouté compatibilité Windows

parent bb3c7f10
/.vscode/
/build/
/lib/
imgui.ini
......@@ -14,10 +14,16 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(EXECUTABLE_NAME "head-sim")
file(GLOB SOURCES src/*/*.cpp include/imgui/*.*)
find_package(SFML COMPONENTS graphics window system REQUIRED)
if(UNIX)
find_package(SFML COMPONENTS graphics window system REQUIRED)
endif()
include_directories(include)
link_directories(src include/imgui)
add_executable(${EXECUTABLE_NAME} src/Main.cpp ${SOURCES})
target_link_libraries(${EXECUTABLE_NAME} sfml-graphics sfml-window sfml-system GL)
if(UNIX)
target_link_libraries(${EXECUTABLE_NAME} sfml-graphics sfml-window sfml-system GL)
elseif(WIN32)
target_link_libraries(${EXECUTABLE_NAME} "lib/sfml-graphics-d" "lib/sfml-window-d" "lib/sfml-system-d" opengl32)
endif()
file(COPY resources DESTINATION .)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment