Update CMakeLists.txt
This commit is contained in:
parent
03843dbac2
commit
1498f4e21e
1 changed files with 41 additions and 18 deletions
|
@ -13,9 +13,13 @@ set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
|
||||||
|
|
||||||
#Inclusion de Boost
|
#Inclusion de Boost
|
||||||
|
|
||||||
include_directories(/usr/include)
|
IF (WIN32)
|
||||||
|
include_directories($ENV{MINGW_HOME}/usr/include)
|
||||||
link_directories(/usr/lib)
|
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
|
#Configuration de l'édition de liens
|
||||||
|
|
||||||
target_link_libraries(
|
|
||||||
main
|
IF (WIN32)
|
||||||
openal
|
target_link_libraries(
|
||||||
alut
|
main
|
||||||
sndfile
|
openal
|
||||||
SDL2main
|
alut
|
||||||
SDL2
|
sndfile
|
||||||
SDL2_image
|
SDL2main
|
||||||
SDL2_ttf
|
SDL2
|
||||||
SDL2_mixer
|
SDL2_image
|
||||||
GLEW
|
SDL2_ttf
|
||||||
glut
|
SDL2_mixer
|
||||||
GL
|
glew32
|
||||||
GLU
|
glut
|
||||||
)
|
opengl32
|
||||||
|
glu32
|
||||||
|
)
|
||||||
|
ELSE()
|
||||||
|
target_link_libraries(
|
||||||
|
main
|
||||||
|
openal
|
||||||
|
alut
|
||||||
|
sndfile
|
||||||
|
SDL2main
|
||||||
|
SDL2
|
||||||
|
SDL2_image
|
||||||
|
SDL2_ttf
|
||||||
|
SDL2_mixer
|
||||||
|
GLEW
|
||||||
|
glut
|
||||||
|
GL
|
||||||
|
GLU
|
||||||
|
)
|
||||||
|
ENDIF()
|
Reference in a new issue