Labyrinth-JIN/CMakeLists.txt
trotFunky 24ff555e88 Added maze class that handles parsing of the map and rendering of the floor, walls and objectives.
Detects and counts the number of objectives encountered. The number is printed on exit.
2019-11-04 03:05:37 +01:00

37 lines
No EOL
835 B
CMake

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
src/MovementManager.h
src/MovementManager.cpp
src/TileTypes.h
src/Maze.cpp
src/Maze.h)
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)