From 1498f4e21e915e52aef82950e4acacf610f73e96 Mon Sep 17 00:00:00 2001 From: MrDev023 Date: Sun, 2 Oct 2016 19:54:43 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 59 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b848253..2bed42a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,9 +13,13 @@ set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE}) #Inclusion de Boost -include_directories(/usr/include) - -link_directories(/usr/lib) +IF (WIN32) + include_directories($ENV{MINGW_HOME}/usr/include) + link_directories($ENV{MINGW_HOME}/usr/lib) +ELSE() + include_directories(/usr/include) + link_directories(/usr/lib) +ENDIF() @@ -36,18 +40,37 @@ add_executable( #Configuration de l'édition de liens -target_link_libraries( - main - openal - alut - sndfile - SDL2main - SDL2 - SDL2_image - SDL2_ttf - SDL2_mixer - GLEW - glut - GL - GLU -) \ No newline at end of file + +IF (WIN32) + target_link_libraries( + main + openal + alut + sndfile + SDL2main + SDL2 + SDL2_image + SDL2_ttf + SDL2_mixer + glew32 + glut + opengl32 + glu32 + ) +ELSE() + target_link_libraries( + main + openal + alut + sndfile + SDL2main + SDL2 + SDL2_image + SDL2_ttf + SDL2_mixer + GLEW + glut + GL + GLU + ) +ENDIF() \ No newline at end of file