mirror of https://github.com/status-im/evmc.git
cmake: Include EVMC.cmake module in the package
This commit is contained in:
parent
fc6b80b7c4
commit
fece3b066c
|
@ -79,6 +79,7 @@ install(
|
||||||
FILES
|
FILES
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/evmcConfig.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/evmcConfig.cmake
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/evmcConfigVersion.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/evmcConfigVersion.cmake
|
||||||
|
cmake/EVMC.cmake
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/evmc
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/evmc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
@PACKAGE_INIT@
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/evmcTargets.cmake")
|
include(${CMAKE_CURRENT_LIST_DIR}/evmcTargets.cmake)
|
||||||
check_required_components(evmc)
|
check_required_components(evmc)
|
||||||
|
|
||||||
|
include(${CMAKE_CURRENT_LIST_DIR}/EVMC.cmake)
|
||||||
|
|
|
@ -12,3 +12,10 @@ find_package(evmc CONFIG REQUIRED)
|
||||||
|
|
||||||
add_executable(use_evmc_in_cmake use_evmc_in_cmake.c)
|
add_executable(use_evmc_in_cmake use_evmc_in_cmake.c)
|
||||||
target_link_libraries(use_evmc_in_cmake PRIVATE evmc::evmc)
|
target_link_libraries(use_evmc_in_cmake PRIVATE evmc::evmc)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Only for integration tests.
|
||||||
|
if(NOT COMMAND evmc_add_vm_test)
|
||||||
|
message(FATAL_ERROR "Function evmc_add_vm_test() not in EVMC.cmake module")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue