NESemu/CMakeLists.txt

35 lines
911 B
CMake
Raw 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")
2022-02-28 15:32:55 +00:00
find_package(GLFW3)
if(NOT ${GLFW3_FOUND})
add_subdirectory("vendor/glfw")
2022-02-28 16:24:14 +00:00
set(GLFW3_INCLUDE_DIRS glfw)
2022-02-28 15:32:55 +00:00
set(GLFW3_LIBRARIES 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")