1
0
Fork 0
This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
MrDev023-Cpp-Engine/CMakeLists.txt

76 lines
1.4 KiB
Text
Raw Normal View History

2016-07-30 18:19:42 +02:00
#require opengl,glew,glut,glu,al,alc,sndfile library
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2016-07-30 18:19:42 +02:00
cmake_minimum_required(VERSION 2.6)
cmake_policy(SET CMP0015 NEW)
#Configuration du projet
project(TestSDL2)
set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
#Inclusion de Boost
2016-10-02 19:54:43 +02:00
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()
2016-07-30 18:19:42 +02:00
#Configuration de l'exécutable
file(
GLOB_RECURSE
source_files
src/*
)
add_executable(
main
${source_files}
)
#Configuration de l'édition de liens
2016-10-02 19:54:43 +02:00
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()