1
0
Fork 0

Update CMakeLists.txt

This commit is contained in:
MrDev023 2016-10-02 19:54:43 +02:00
parent 03843dbac2
commit 1498f4e21e

View file

@ -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
)
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()