From cb943db299881a9c109d806ed9fa8ad110c5ae8c Mon Sep 17 00:00:00 2001 From: Vectozavr <60608292+vectozavr@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:34:22 +0700 Subject: [PATCH] VS support --- CMakeLists.txt | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index add7087..35440d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ endif() target_link_libraries(shooter sfml-audio sfml-network sfml-graphics sfml-window sfml-system) -# OpenGL part +# OpenGL part for MacOS if (APPLE OR UNIX) set(GLEW_H /usr/local/Cellar/glew/2.1.0/include/GL) set(GLFW_H /usr/local/Cellar/glfw/3.2.1/include/GLFW) @@ -126,18 +126,4 @@ if (APPLE OR UNIX) target_link_libraries(shooter "-framework OpenGL") target_link_libraries(shooter "-framework GLUT") -else() - #OPENGL - find_package(OpenGL REQUIRED) - if (OpenGL_FOUND) - include_directories(${OpenGL_INCLUDE_DIR}) - target_link_libraries(${PROJECT_NAME} ${OpenGL_LIBRARIES}) - target_link_libraries(${PROJECT_NAME} GL) - endif() - - find_package(GLEW 2.0 REQUIRED) - if (GLEW_FOUND) - include_directories(${GLEW_INCLUDE_DIR}) - target_link_libraries(${PROJECT_NAME} ${GLEW_LIBRARIES}) - endif() -endif() \ No newline at end of file +endif()