Base program with textured ground
This commit is contained in:
commit
165524cc11
7 changed files with 172 additions and 0 deletions
32
CMakeLists.txt
Normal file
32
CMakeLists.txt
Normal file
|
@ -0,0 +1,32 @@
|
|||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
if(DEFINED ENV{VCPKG_ROOT})
|
||||
set(VCPKG_TARGET_TRIPLET "x64-windows")
|
||||
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
||||
CACHE STRING "")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
project(labyrinthe)
|
||||
|
||||
add_subdirectory(libs/OpenGL-JIN)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLUT REQUIRED)
|
||||
|
||||
|
||||
add_executable(game
|
||||
src/main.cpp)
|
||||
|
||||
target_include_directories(game PRIVATE
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${GLUT_INCLUDE_DIR}
|
||||
libs/OpenGL-JIN/src)
|
||||
|
||||
target_link_libraries(game PRIVATE
|
||||
${OPENGL_LIBRARIES}
|
||||
${GLUT_LIBRARIES}
|
||||
engine)
|
Loading…
Add table
Add a link
Reference in a new issue