nix-vcpkg-cross-experiment/CMakeLists.txt

22 lines
434 B
CMake

cmake_minimum_required(VERSION 3.16)
project(TestProject LANGUAGES CXX)
include("${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
find_package(fmt CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
# find_package(fmt REQUIRED)
# find_package(nlohmann_json REQUIRED)
add_executable(test main.cpp)
target_link_libraries(
test
PRIVATE
fmt::fmt
nlohmann_json::nlohmann_json
)
install(TARGETS test DESTINATION bin)