Files
CMake/Tests/RunCMake/CpsExportImportInstall/TestExecutable.cmake
Matthew Woehlke 9d83a1ed1f Tests: Rename certain CPS tests
Rename the RunCMake/PackageInfo and RunCMake/CpsExportImport tests to
indicate that they cover CPS generated by the install command. This
opens space for similar tests that will cover CPS generation via the
export command.
2025-02-25 12:18:13 -05:00

13 lines
295 B
CMake

project(TestLibrary C)
set(CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR}/../install")
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/../install")
find_package(libb REQUIRED COMPONENTS libb)
add_executable(app app.c)
target_link_libraries(app PUBLIC libb::libb)
install(TARGETS app DESTINATION bin)