Files
archived-ext-hwinfo/examples/CMakeLists.txt
Amin Yahyaabadi ef8fce2d91 feat: make hwinfo features modular (#98)
* feat: make hwinfo features modular

* fix: use the latest available C++ standard

* fix!: deprecate NO_OCL in favour of HWINFO_GPU_OPENCL

* doc: add docs for the modular targets/options

* fix: add preprocessor feature guards

* ci: test build of all features in ci

* fix: detect C++ standard after enabling C++ language
2024-07-24 08:41:46 +02:00

11 lines
252 B
CMake

add_executable(Example example.cpp)
include(FetchContent)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 11.0.1)
FetchContent_MakeAvailable(fmt)
target_link_libraries(Example PRIVATE hwinfo::hwinfo fmt::fmt)