2024-11-21 17:41:52 +00:00
|
|
|
# Set minimum CMake version
|
2024-03-27 13:04:19 +00:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
|
|
|
|
2024-04-25 10:34:29 +00:00
|
|
|
# Declare project
|
|
|
|
project(ferx)
|
|
|
|
|
2024-07-29 15:59:40 +00:00
|
|
|
# Define C++ standard
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2024-04-25 10:34:29 +00:00
|
|
|
# Define variables of directory paths
|
2024-04-22 21:00:51 +00:00
|
|
|
set(THIRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
|
2024-03-27 13:04:19 +00:00
|
|
|
|
2024-11-21 17:41:52 +00:00
|
|
|
# Add third party libraries
|
2024-04-22 21:00:51 +00:00
|
|
|
add_subdirectory(${THIRDPARTY_DIR}/glad)
|
|
|
|
add_subdirectory(${THIRDPARTY_DIR}/glfw)
|
2024-04-25 10:51:17 +00:00
|
|
|
add_subdirectory(${THIRDPARTY_DIR}/glm)
|
2024-03-27 13:04:19 +00:00
|
|
|
add_subdirectory(${THIRDPARTY_DIR}/imgui)
|
2024-08-22 15:55:30 +00:00
|
|
|
add_subdirectory(${THIRDPARTY_DIR}/stb)
|
2024-03-27 13:04:19 +00:00
|
|
|
|
2024-07-29 15:59:40 +00:00
|
|
|
# Add engine and editor
|
|
|
|
add_subdirectory(engine)
|
|
|
|
add_subdirectory(editor)
|