mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-26 04:09:35 +03:00
- Change default CPS install path on Windows from `cps` to `cps/<name>`, per community recommendation that only paths containing the package name should be considered as "officially" supported search locations (see https://github.com/cps-org/cps/issues/79#issuecomment-2831102822). - Change `export` to write to a subdirectory that allows the build tree to be used as a search root. - Change SBOM destinations to be consistent with the preceding. Issue: #27785
13 lines
312 B
CMake
13 lines
312 B
CMake
project(TestLibrary C)
|
|
|
|
set(liba_DIR "${CMAKE_BINARY_DIR}/../TestLibrary-build/cps/liba")
|
|
set(libb_DIR "${CMAKE_BINARY_DIR}/../TestLibrary-build/cps/libb")
|
|
|
|
find_package(libb REQUIRED COMPONENTS libb)
|
|
|
|
add_executable(app app.c)
|
|
|
|
target_link_libraries(app PUBLIC libb::libb)
|
|
|
|
install(TARGETS app DESTINATION bin)
|