1
0
mirror of https://github.com/lefticus/6502-cpp.git synced 2024-12-30 07:31:38 +00:00
6502-cpp/src/CMakeLists.txt

21 lines
498 B
CMake
Raw Normal View History

option(CPP_STARTER_USE_SDL "Enable compilation of SDL sample" OFF)
# sdl
if(CPP_STARTER_USE_SDL)
message("Using SDL2")
add_subdirectory(sdl)
endif()
# Generic test that uses conan libs
add_executable(6502-c++ 6502-c++.cpp)
target_link_libraries(
6502-c++
PRIVATE project_options
project_warnings
2021-05-07 03:43:03 +00:00
CONAN_PKG::ctre
CONAN_PKG::cli11
CONAN_PKG::fmt
CONAN_PKG::spdlog)
target_include_directories(6502-c++
PRIVATE "${CMAKE_SOURCE_DIR}")