From b1d1573702f21e3104606d6ade5f5d39ec86a33a Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 23 Jan 2025 22:02:11 +0100 Subject: restructure project --- lib/CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/CMakeLists.txt (limited to 'lib/CMakeLists.txt') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..e98002c --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,21 @@ +add_library(nes STATIC) +add_library(nes::nes ALIAS nes) + +target_include_directories(nes PUBLIC .) +target_link_libraries(nes PRIVATE nes::options) + +if(NES_ENABLE_PPU) + target_compile_definitions(nes PUBLIC NES_ENABLE_PPU) +endif() +if(NES_ENABLE_DEBUG_OUTPUT) + target_compile_definitions(nes PUBLIC NES_ENABLE_DEBUG_OUTPUT) + target_link_libraries(nes PUBLIC spdlog::spdlog) +endif() + +add_library(nes_ref STATIC) +add_library(nes::ref ALIAS nes_ref) + +target_link_libraries(nes_ref PRIVATE nes::options) +target_link_libraries(nes_ref PUBLIC nes::nes) + +add_subdirectory(nes) \ No newline at end of file -- cgit v1.3.1