nix-vcpkg-cross-experiment/CMakeLists.txt

22 lines
434 B
CMake
Raw Normal View History

2024-06-22 16:38:19 +02:00
cmake_minimum_required(VERSION 3.16)
project(TestProject LANGUAGES CXX)
2024-06-24 08:07:42 +02:00
include("${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
2024-06-22 16:38:19 +02:00
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
)
2024-06-24 08:07:42 +02:00
install(TARGETS test DESTINATION bin)