mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 13:31:19 +01:00
13 lines
394 B
CMake
13 lines
394 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
project(ryml-quickstart LANGUAGES CXX)
|
|
|
|
find_package(ryml REQUIRED)
|
|
|
|
add_executable(ryml-quickstart ../quickstart.cpp)
|
|
target_link_libraries(ryml-quickstart ryml::ryml) # note the namespace!
|
|
|
|
add_custom_target(run ryml-quickstart
|
|
COMMAND $<TARGET_FILE:ryml-quickstart>
|
|
DEPENDS ryml-quickstart
|
|
COMMENT "running: $<TARGET_FILE:ryml-quickstart>")
|