NESemu/CMakeLists.txt

35 lines
914 B
CMake
Raw Permalink Normal View History

2022-02-28 15:04:25 +00:00
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required (VERSION 3.8)
project ("NES Emulator")
2023-01-30 16:14:20 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED 17)
set(CMAKE_CXX_STANDARD 17)
2022-02-28 16:30:12 +00:00
find_package(glfw3)
2022-02-28 17:02:24 +00:00
if(NOT glfw3_FOUND)
2022-02-28 15:32:55 +00:00
add_subdirectory("vendor/glfw")
endif()
2022-02-28 15:04:25 +00:00
add_subdirectory("vendor/glad")
add_subdirectory("vendor/spdlog")
set(IMGUI_SOURCES
${CMAKE_SOURCE_DIR}/vendor/imgui/imgui.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/imgui_demo.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/imgui_draw.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/imgui_tables.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/imgui_widgets.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/backends/imgui_impl_glfw.cpp
${CMAKE_SOURCE_DIR}/vendor/imgui/backends/imgui_impl_opengl3.cpp
)
set(IMGUI_INCLUDE
${CMAKE_SOURCE_DIR}/vendor
${CMAKE_SOURCE_DIR}/vendor/imgui
)
# Include sub-projects.
add_subdirectory ("src")