mirror of
https://github.com/boostorg/nowide.git
synced 2026-02-21 15:12:30 +00:00
Remove LAYOUT and SYSTEM_INCLUDE parameters (handled by superproject if wanted). Remove BoostAddLibrary and add the options in the "classic" way. Refactor BoostInstall into a generic InstallTargets function that wraps all boilerplate code required for almost all libraries.
24 lines
706 B
CMake
24 lines
706 B
CMake
@PACKAGE_INIT@
|
|
|
|
set(_boost_nowide_standalone @BOOST_NOWIDE_STANDALONE@)
|
|
set(_boost_nowide_superproject "@BOOST_SUPERPROJECT_SOURCE_DIR@")
|
|
|
|
if(NOT _boost_nowide_standalone)
|
|
include(CMakeFindDependencyMacro)
|
|
if(_boost_nowide_superproject)
|
|
foreach(dep IN ITEMS boost_config boost_smart_ptr boost_static_assert)
|
|
find_dependency(${dep})
|
|
endforeach()
|
|
else()
|
|
# Default boost libs are static on windows and dynamic on linux
|
|
if(WIN32 AND "${Boost_USE_STATIC_LIBS}" STREQUAL "")
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
endif()
|
|
find_dependency(Boost 1.56)
|
|
endif()
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
|
|
|
check_required_components("@PROJECT_NAME@")
|