Add dependencies to CMake config.
This commit is contained in:
parent
3f80752239
commit
ece6da5479
|
@ -38,6 +38,8 @@ if(WITH_CLANG-TIDY)
|
|||
"-quiet")
|
||||
endif()
|
||||
|
||||
add_subdirectory(cmake)
|
||||
|
||||
add_subdirectory(lib)
|
||||
|
||||
if(WITH_GUI)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
include(GNUInstallDirs)
|
||||
|
||||
install(FILES
|
||||
"FindFilesystem.cmake"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
|
@ -1,5 +1,7 @@
|
|||
include(CMakeFindDependencyMacro)
|
||||
|
||||
find_dependency(mastodonpp 0.5 REQUIRED CONFIG)
|
||||
find_dependency(Filesystem REQUIRED)
|
||||
find_dependency(nlohmann_json REQUIRED CONFIG)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
include(GNUInstallDirs)
|
||||
|
||||
find_package(mastodonpp REQUIRED CONFIG)
|
||||
find_package(Filesystem)
|
||||
find_package(Filesystem REQUIRED)
|
||||
find_package(nlohmann_json REQUIRED CONFIG)
|
||||
|
||||
add_library(${PROJECT_NAME})
|
||||
|
|
Reference in New Issue