This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(simple_object_storage)
|
project(simple_object_storage)
|
||||||
|
set(PROJECT_EXE_NAME simple_object_storage)
|
||||||
|
|
||||||
# Set the build type to Debug
|
# Set the build type to Debug
|
||||||
#set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type (e.g., Debug, Release)" FORCE)
|
#set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type (e.g., Debug, Release)" FORCE)
|
||||||
@@ -48,13 +49,13 @@ include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Create executable
|
# Create executable
|
||||||
add_executable(simple_object_storage ${SOURCES})
|
add_executable(${PROJECT_EXE_NAME} ${SOURCES})
|
||||||
|
|
||||||
# Remove specific static flags as CMAKE_EXE_LINKER_FLAGS handles it now
|
# Remove specific static flags as CMAKE_EXE_LINKER_FLAGS handles it now
|
||||||
target_link_libraries(simple_object_storage
|
target_link_libraries(${PROJECT_EXE_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Install target
|
# Install target
|
||||||
install(TARGETS simple_object_storage
|
install(TARGETS ${PROJECT_EXE_NAME}
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
)
|
)
|
@@ -8,6 +8,8 @@
|
|||||||
#include "database.hpp"
|
#include "database.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "rate_limiter.hpp"
|
#include "rate_limiter.hpp"
|
||||||
|
#include "put_handler.hpp"
|
||||||
|
#include "update_handler.hpp"
|
||||||
|
|
||||||
namespace simple_object_storage {
|
namespace simple_object_storage {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user