18 lines
554 B
CMake
18 lines
554 B
CMake
set(ECHOION_URL_SHORTENER_INTERNAL_VERSION "1.0.0")
|
|
set(ECHOION_URL_SHORTENER_EXTERNAL_VERSION "1.0.0")
|
|
|
|
find_package(OpenSSL REQUIRED COMPONENTS Crypto)
|
|
find_package(Boost REQUIRED COMPONENTS url)
|
|
|
|
if(NOT TARGET EchoionApiPlugin)
|
|
message(FATAL_ERROR
|
|
"First-party plugins require BUILD_API=ON and Echoion::ApiPlugin")
|
|
endif()
|
|
if(NOT TARGET Void::ShortUrl)
|
|
message(FATAL_ERROR
|
|
"First-party URL shorteners require a VoidLibrary revision with Void::ShortUrl")
|
|
endif()
|
|
|
|
add_subdirectory(url-shortener-internal)
|
|
add_subdirectory(url-shortener-external)
|