blob: f977e3c29e983b8e2cf61805d10a899c8a66047a [file] [log] [blame]
Radek Krejcicb293a32020-11-13 15:36:29 +01001# yangre
2
3set(resrc
4 main.c)
5
6set(format_sources
7 ${format_sources}
8 ${CMAKE_CURRENT_SOURCE_DIR}/*.c
9 PARENT_SCOPE)
10
Michal Vasko1b0b9a12021-05-06 08:38:34 +020011add_executable(yangre ${resrc} ${compatsrc})
Radek Krejcicb293a32020-11-13 15:36:29 +010012target_link_libraries(yangre yang)
13install(TARGETS yangre DESTINATION ${CMAKE_INSTALL_BINDIR})
Michal Vaskoe8543492021-07-16 14:53:06 +020014install(FILES ${PROJECT_SOURCE_DIR}/tools/re/yangre.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
Radek Krejcicb293a32020-11-13 15:36:29 +010015target_include_directories(yangre BEFORE PRIVATE ${PROJECT_BINARY_DIR})