lib/util/CMakeLists.txt
raw| 1 | add_library(util STATIC |
| 2 | arena.c |
| 3 | base64.c |
| 4 | gv_find_me.c |
| 5 | gv_fopen.c |
| 6 | list.c |
| 7 | random.c |
| 8 | xml.c |
| 9 | ) |
| 10 | |
| 11 | target_include_directories(util PRIVATE ..) |
| 12 | |
| 13 | if(WIN32 AND NOT MINGW) |
| 14 | target_include_directories(util PRIVATE ../../windows/include/unistd) |
| 15 | endif() |
| 16 | |
| 17 | # From https://gitlab.com/graphviz/graphviz/-/issues/1613 @mdwies 20093010 |
| 18 | if(APPLE) |
| 19 | target_compile_options(util PRIVATE "-fno-common") |
| 20 | endif() |