Skip to content

Commit

Permalink
remove hack about deploying crypto3
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 20, 2024
1 parent 3e32671 commit 46c5ad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
12 changes: 1 addition & 11 deletions crypto3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,10 @@ endif()
configure_file(${CMAKE_CURRENT_LIST_DIR}/docs/doxygen/crypto3.doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/crypto3.doxyfile @ONLY)

# Configure package file to be able to import crypto3 headers
# TODO: remove it after resolving cyclical dependencies in crypto3 modules
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
set(CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/crypto3)

configure_package_config_file(
cmake/Config.cmake.in
crypto3Config.cmake
INSTALL_DESTINATION ${CONFIG_DIR}
)

install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/crypto3Config.cmake
cmake/crypto3Config.cmake
DESTINATION ${CONFIG_DIR}
)
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
find_dependency(Boost COMPONENTS REQUIRED
container json filesystem log log_setup program_options thread system unit_test_framework)

# Protect against multiple inclusion
if (TARGET crypto3::all)
return()
endif()

include(CMakeFindDependencyMacro)
find_dependency(Boost COMPONENTS REQUIRED
container json filesystem log log_setup program_options thread system unit_test_framework)

add_library(crypto3::all INTERFACE IMPORTED)

set_target_properties(crypto3::all PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "@CMAKE_INSTALL_FULL_INCLUDEDIR@"
INTERFACE_LINK_LIBRARIES ${Boost_LIBRARIES})

0 comments on commit 46c5ad9

Please sign in to comment.