Visualizer/CMakeLists.txt

33 lines
787 B
Text
Raw Normal View History

2021-12-20 04:31:44 +01:00
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required (VERSION 3.8)
project ("Visualizer")
2021-12-22 15:45:52 +01:00
set(CMAKE_CXX_STANDARD 17)
2021-12-21 15:22:47 +01:00
set(VENDOR_DIR ${CMAKE_SOURCE_DIR}/vendor)
2021-12-20 16:58:47 +01:00
find_package(GLFW3)
2021-12-20 04:31:44 +01:00
if(NOT GLFW3_FOUND)
message(STATUS "Could not find GLFW binaries on system, building from source instead")
add_subdirectory("vendor/glfw")
set(GLFW3_INCLUDE_DIRS glfw)
set(GLFW3_LIBRARIES glfw)
endif()
2021-12-29 18:56:34 +01:00
find_package(SDL2)
if(NOT SDL2_FOUND)
message(STATUS "Could not find SDL binaries on system, building from source instead")
add_subdirectory("vendor/sdl")
set(SDL2_INCLUDE_DIRS sdl_static)
set(SDL2_LIBRARIES sdl_static)
endif()
2021-12-20 16:58:47 +01:00
2021-12-20 04:31:44 +01:00
# Include sub-projects.
2021-12-23 00:52:28 +01:00
add_subdirectory ("vendor/lol")
2021-12-20 04:31:44 +01:00
add_subdirectory ("src")