Db
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(dropshell_template_registry)
|
||||
project(simple_object_storage)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
@@ -27,25 +27,15 @@ include_directories(
|
||||
)
|
||||
|
||||
# Create executable
|
||||
add_executable(dropshell_template_registry ${SOURCES})
|
||||
add_executable(simple_object_storage ${SOURCES})
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(dropshell_template_registry
|
||||
Threads::Threads # Use modern Threads target
|
||||
SQLite::SQLite3 # Use SQLite3 target
|
||||
# ssl and crypto might still be needed by httplib if used
|
||||
# ssl
|
||||
# crypto
|
||||
target_link_libraries(simple_object_storage
|
||||
Threads::Threads
|
||||
SQLite::SQLite3
|
||||
)
|
||||
|
||||
# Set compile options for static linking
|
||||
# Note: Static linking SQLite might require additional setup depending on the system
|
||||
# set_target_properties(dropshell_template_registry PROPERTIES
|
||||
# LINK_SEARCH_START_STATIC ON
|
||||
# LINK_SEARCH_END_STATIC ON
|
||||
# )
|
||||
|
||||
# Install target
|
||||
install(TARGETS dropshell_template_registry
|
||||
install(TARGETS simple_object_storage
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
Reference in New Issue
Block a user