Skip to content

Commit

Permalink
update server but have runtime problem
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroAir committed Apr 19, 2024
1 parent 0345ce0 commit a8ef13f
Show file tree
Hide file tree
Showing 62 changed files with 635 additions and 3,599 deletions.
26 changes: 14 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ include_directories(${CMAKE_SOURCE_DIR}/libs/oatpp)
include_directories(${CMAKE_SOURCE_DIR}/libs/oatpp-swagger)
include_directories(${CMAKE_SOURCE_DIR}/libs/oatpp-websocket)

find_package(OpenSSL REQUIRED)
if(OpenSSL_FOUND)
message("-- Found OpenSSL ${OPENSSL_VERSION}: ${OPENSSL_LIBRARIES}")
else()
message("-- OpenSSL Not Found")
endif()

find_package(CFITSIO REQUIRED)
find_package(ZLIB REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(fmt REQUIRED)

#################################################################################
#
# Subdirectories of Lithium
Expand All @@ -118,6 +130,7 @@ add_subdirectory(modules)
add_subdirectory(driver)

add_subdirectory(${lithium_src_dir}/config)
add_subdirectory(${lithium_src_dir}/server)

#################################################################################
#
Expand Down Expand Up @@ -219,18 +232,6 @@ set(Lithium_module
${lithium_src_dir}/LithiumApp.cpp
)

find_package(OpenSSL REQUIRED)
if(OpenSSL_FOUND)
message("-- Found OpenSSL ${OPENSSL_VERSION}: ${OPENSSL_LIBRARIES}")
else()
message("-- OpenSSL Not Found")
endif()

find_package(CFITSIO REQUIRED)
find_package(ZLIB REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(fmt REQUIRED)

#################################################################################
# Main

Expand All @@ -239,6 +240,7 @@ add_executable(lithium_server ${lithium_src_dir}/app.cpp)
target_link_directories(lithium_server PUBLIC ${CMAKE_BINARY_DIR}/libs)

target_link_libraries(lithium_server lithium_server-library)
target_link_libraries(lithium_server lithium_webserver)
target_link_libraries(lithium_server oatpp-websocket oatpp-swagger oatpp-openssl oatpp-zlib oatpp)
target_link_libraries(lithium_server loguru)
target_link_libraries(lithium_server libzippp)
Expand Down
Loading

0 comments on commit a8ef13f

Please sign in to comment.