From 58d0c33784ff166c1b3079b3d714416fd536d35f Mon Sep 17 00:00:00 2001 From: carl Date: Tue, 19 Feb 2019 00:37:11 +0800 Subject: [PATCH] * Initial support of CMake --- util/cmisc/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 util/cmisc/CMakeLists.txt diff --git a/util/cmisc/CMakeLists.txt b/util/cmisc/CMakeLists.txt new file mode 100644 index 000000000..781a69f7e --- /dev/null +++ b/util/cmisc/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required (VERSION 2.9) +project (cmisc) + + +add_executable(tabgen tabgen.c) +target_compile_definitions(tabgen PUBLIC NORCSID=1) + +add_executable(ed ed.c) +target_compile_definitions(ed PUBLIC NORCSID=1) + + +install(TARGETS tabgen ed DESTINATION bin) +install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/tabgen.1 + ${CMAKE_CURRENT_SOURCE_DIR}/ed.1 + DESTINATION man OPTIONAL) +