mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
Add it to a private source directory that is not installed so that we can use it for building CMake itself. This will allow it to mature before being distributed publicly.
18 lines
657 B
CMake
18 lines
657 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
project(TestFindLibRHash C)
|
|
include(CTest)
|
|
|
|
# CMake does not actually provide FindLibRHash publicly.
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../Source/Modules)
|
|
|
|
find_package(LibRHash REQUIRED)
|
|
|
|
add_executable(test_librhash_tgt main.c)
|
|
target_link_libraries(test_librhash_tgt LibRHash::LibRHash)
|
|
add_test(NAME test_librhash_tgt COMMAND test_librhash_tgt)
|
|
|
|
add_executable(test_librhash_var main.c)
|
|
target_include_directories(test_librhash_var PRIVATE ${LibRHash_INCLUDE_DIRS})
|
|
target_link_libraries(test_librhash_var PRIVATE ${LibRHash_LIBRARIES})
|
|
add_test(NAME test_librhash_var COMMAND test_librhash_var)
|