Voici le fichier CMakeLists.txt qui est dans le dossier src :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
project(testcourscubetextureopengl3)
cmake_minimum_required(VERSION 2.8)
find_package(OpenGL REQUIRED)
message(STATUS "New prefix : ${OTHER_LIB_PREFIX}")
set(OTHER_INSTALL_LIB ${OTHER_LIB_PREFIX}/lib)
message(STATUS "New lib prefix : ${OTHER_INSTALL_LIB}")
set(SDL_OTHER_INCLUDE_DIR ${OTHER_LIB_PREFIX}/include)
message(STATUS "New include prefix : ${SDL_OTHER_INCLUDE_DIR}")
include_directories(${SDL_OTHER_INCLUDE_DIR} ${SDL_image_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
add_definitions(-O0 -Wall)
set(testcourssimpleopengl3_SRCS pointf.c load_shaders.c sdlglutils.cpp load_texture_Gl3.cpp vecteur3f.cpp matrice3f.cpp Vecteur4.cpp Matrice4.cpp simple_camera_gl3.cpp PAppSdlOpenGl3.cpp PAppTestSdlGl3.cpp main.cpp)
add_executable(testcourscubetextureopengl3 ${testcourssimpleopengl3_SRCS})
target_link_libraries(testcourscubetextureopengl3 GL GLU ${OTHER_INSTALL_LIB}/libSDL2.so SDL_image pthread m dl)
|
On a changé le nom du projet, et on a rajouter le fichier sdlglutils.cpp dans la compilation.
|