From 3f1fa330c350d09230191323c493890b2661e898 Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 5 Nov 2024 14:32:52 +0100 Subject: [PATCH] Turn GUI into a header only library again --- gui/CMakeLists.txt | 8 +++----- gui/src/web_server.cpp | 9 --------- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 gui/src/web_server.cpp diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 6955be90..045baf89 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -32,19 +32,17 @@ find_package(Crow REQUIRED) ########### # Declare a cpp library -add_library(${PROJECT_NAME}_gui SHARED - src/web_server.cpp +add_library(${PROJECT_NAME}_gui INTERFACE include/arbitration_graphs/gui/web_server.hpp ) -target_include_directories(${PROJECT_NAME}_gui PUBLIC +target_include_directories(${PROJECT_NAME}_gui INTERFACE $ $ $ ) -target_link_libraries(${PROJECT_NAME}_gui PUBLIC +target_link_libraries(${PROJECT_NAME}_gui INTERFACE Crow::Crow ) -target_include_directories(${PROJECT_NAME}_gui PRIVATE "${PROJECT_BINARY_DIR}/include/arbitration_graphs/gui") ############# diff --git a/gui/src/web_server.cpp b/gui/src/web_server.cpp deleted file mode 100644 index 062d76a2..00000000 --- a/gui/src/web_server.cpp +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @brief Make sure to compile an object file. - * - * This is important for a clean install: - * All Web App resources are installed into e.g. /usr/local/share/arbitration_graphs - * This web root path is defined at compile time and compiled into the object file. - */ - -#include "gui/web_server.hpp" \ No newline at end of file