NESEmulator/CMakeLists.txt

17 lines
440 B
CMake
Raw Permalink Normal View History

2021-10-23 18:36:38 +00:00
cmake_minimum_required (VERSION 3.8)
2021-10-20 20:39:29 +00:00
project ("NES Emulator")
find_package (SDL2)
if (SDL2_FOUND)
message (STATUS "SDL2 found, using system-installed SDL2")
else (SDL2_FOUND)
message (STATUS "SDL2 not found, using vendored static SDL2")
set (BUILD_SHARED_LIBS OFF)
add_subdirectory ("vendor/SDL")
set (SDL2_INCLUDE_DIRS SDL2-static)
set (SDL2_LIBRARIES SDL2-static SDL2main)
endif (SDL2_FOUND)
2021-10-20 20:39:29 +00:00
add_subdirectory ("NES Emulator")