tests/2598_1/CMakeLists.txt
raw| 1 | cmake_minimum_required(VERSION 3.12 FATAL_ERROR) |
| 2 | project(test_2598_1 C) |
| 3 | |
| 4 | # listen to `graphviz_ROOT` environment variable during `find_package(graphviz)` |
| 5 | cmake_policy(SET CMP0074 NEW) |
| 6 | |
| 7 | # find Graphviz libraries |
| 8 | find_package(graphviz REQUIRED) |
| 9 | |
| 10 | # define an application that uses libcgraph |
| 11 | add_executable(cgraph_app cgraph_app.c) |
| 12 | target_link_libraries(cgraph_app PRIVATE graphviz::cgraph) |