Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,30 @@ else()
endif()

# == Options ==
option(BUILD_SIPHON_BINARY "Build the siphon CLI executable" OFF)
option(BUILD_SHARED_LIBS "Build siphon as a shared library" OFF)
option(SIPHON_BUILD_TESTS "Build siphon tests" OFF)
option(BUILD_SIPHON_BINARY "Build the siphon CLI executable" OFF)
option(BUILD_SHARED_LIBS "Build siphon as a shared library" OFF)
option(SIPHON_BUILD_TESTS "Build siphon tests" OFF)
option(SIPHON_FETCH_CONFLUENCE "Automatically fetch Confluence" OFF)

# == Dependencies ==
set(CONFLUENCE_DOL_YAML OFF CACHE BOOL "" FORCE)

find_package(Confluence REQUIRED)
if(SIPHON_FETCH_CONFLUENCE)
find_package(Confluence QUIET)
else()
find_package(Confluence REQUIRED)
endif()

if(NOT TARGET confluence)
include(FetchContent)
FetchContent_Declare(
confluence
GIT_REPOSITORY https://github.com/Linifadomra/Confluence
GIT_TAG b2b77930801dfe3fad4b05f2744f0573f592b615
)
FetchContent_MakeAvailable(confluence)
endif()

find_package(ZLIB REQUIRED)
find_package(PkgConfig)
if(PkgConfig_FOUND)
Expand Down
Loading