Skip to content

Commit

Permalink
Merge pull request #23 from edgale/cmake-swagger-paths
Browse files Browse the repository at this point in the history
fix: added swagger paths to cmake
  • Loading branch information
lganzzzo authored May 16, 2022
2 parents ded6d9c + bac1875 commit 5913f9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ add_definitions(
-DDATABASE_MIGRATIONS="${CMAKE_CURRENT_SOURCE_DIR}/sql"
)

set(SWAGGER_ROOT_PATH "/swagger" CACHE STRING "Default root path to the Swagger")
set(SWAGGER_UI_PATH "/ui" CACHE STRING "Default path suffix to the Swagger UI")
add_compile_definitions(
SWAGGER_ROOT_PATH="${SWAGGER_ROOT_PATH}"
SWAGGER_UI_PATH="${SWAGGER_UI_PATH}"
)

if(CMAKE_SYSTEM_NAME MATCHES Linux)
find_package(Threads REQUIRED)
target_link_libraries(crud-lib INTERFACE Threads::Threads ${CMAKE_DL_LIBS})
Expand Down

0 comments on commit 5913f9d

Please sign in to comment.