cmake_minimum_required(VERSION 3.20) project(FuckAssReflection LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) include(FetchContent) FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) FetchContent_MakeAvailable(json) add_executable(reflection_example main.cpp) target_link_libraries(reflection_example PRIVATE nlohmann_json::nlohmann_json)