You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
593 B
21 lines
593 B
2 years ago
|
include(FetchContent)
|
||
|
|
||
|
FetchContent_Declare(
|
||
|
AddedProject
|
||
|
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/AddedProject
|
||
|
OVERRIDE_FIND_PACKAGE
|
||
|
)
|
||
|
|
||
|
# The default generated config package files are expected to include these when present
|
||
|
file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/AddedProjectExtra.cmake [[
|
||
|
message(STATUS "Uppercase extra file was read")
|
||
|
]]
|
||
|
)
|
||
|
file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/addedproject-extra.cmake [[
|
||
|
message(STATUS "Lowercase extra file was read")
|
||
|
]]
|
||
|
)
|
||
|
|
||
|
# This is expected to be re-routed to a FetchContent_MakeAvailable() call
|
||
|
find_package(AddedProject REQUIRED)
|