From b070df60106e1f2890119c17b12c9f53c932b587 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 28 Dec 2024 18:59:45 +0100 Subject: Rewrite sdn-view AWK core in C++ sdn-view is still slower than I'd like it to be, just no longer ridiculously so. --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 87a2c7e..d0a6042 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,9 +26,14 @@ target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_14) target_compile_definitions (${PROJECT_NAME} PUBLIC -DPROJECT_NAME=\"${PROJECT_NAME}\" -DPROJECT_VERSION=\"${PROJECT_VERSION}\") +add_executable (${PROJECT_NAME}-mc-ext ${PROJECT_NAME}-mc-ext.cpp) +target_compile_features (${PROJECT_NAME}-mc-ext PUBLIC cxx_std_17) + include (GNUInstallDirs) -install (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) -install (PROGRAMS ${PROJECT_NAME}-install ${PROJECT_NAME}-view +# sdn-mc-ext should be in libexec, but we prefer it in PATH. +install (TARGETS sdn sdn-mc-ext + DESTINATION ${CMAKE_INSTALL_BINDIR}) +install (PROGRAMS sdn-install sdn-view DESTINATION ${CMAKE_INSTALL_BINDIR}) install (FILES sdn.1 sdn-install.1 sdn-view.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) -- cgit v1.2.3-70-g09d2