Skip to content

Commit

Permalink
Turn GUI into a header only library again
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 5, 2024
1 parent 786a76f commit 3f1fa33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 3 additions & 5 deletions gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/gui/include/${PROJECT_NAME}>
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include/${PROJECT_NAME}/gui>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>
)
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")


#############
Expand Down
9 changes: 0 additions & 9 deletions gui/src/web_server.cpp

This file was deleted.

0 comments on commit 3f1fa33

Please sign in to comment.