25 lines
755 B
CMake
25 lines
755 B
CMake
add_library(web_service STATIC
|
|
announce_room_json.cpp
|
|
announce_room_json.h
|
|
telemetry_json.cpp
|
|
telemetry_json.h
|
|
verify_login.cpp
|
|
verify_login.h
|
|
verify_user_jwt.cpp
|
|
verify_user_jwt.h
|
|
web_backend.cpp
|
|
web_backend.h
|
|
)
|
|
|
|
create_target_directory_groups(web_service)
|
|
|
|
target_compile_definitions(web_service PRIVATE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
|
target_link_libraries(web_service PRIVATE common network json-headers httplib cpp-jwt)
|
|
target_link_libraries(web_service PUBLIC ${OPENSSL_LIBS})
|
|
set_target_properties(web_service PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
|
|
if (ANDROID)
|
|
target_link_libraries(web_service PRIVATE ifaddrs)
|
|
elseif(WIN32)
|
|
target_link_libraries(web_service PRIVATE crypt32)
|
|
endif()
|