File tree 3 files changed +11
-1
lines changed
examples/use_evmc_in_cmake
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ install(
79
79
FILES
80
80
${CMAKE_CURRENT_BINARY_DIR} /evmcConfig.cmake
81
81
${CMAKE_CURRENT_BINARY_DIR} /evmcConfigVersion.cmake
82
+ cmake/EVMC.cmake
82
83
DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/evmc
83
84
)
84
85
Original file line number Diff line number Diff line change 1
1
@PACKAGE_INIT@
2
2
3
- include (" ${CMAKE_CURRENT_LIST_DIR} /evmcTargets.cmake" )
3
+ include (${CMAKE_CURRENT_LIST_DIR} /evmcTargets.cmake)
4
4
check_required_components(evmc)
5
+
6
+ include (${CMAKE_CURRENT_LIST_DIR} /EVMC.cmake)
Original file line number Diff line number Diff line change @@ -12,3 +12,10 @@ find_package(evmc CONFIG REQUIRED)
12
12
13
13
add_executable (use_evmc_in_cmake use_evmc_in_cmake.c)
14
14
target_link_libraries (use_evmc_in_cmake PRIVATE evmc::evmc)
15
+
16
+
17
+
18
+ # Only for integration tests.
19
+ if (NOT COMMAND evmc_add_vm_test)
20
+ message (FATAL_ERROR "Function evmc_add_vm_test() not in EVMC.cmake module" )
21
+ endif ()
You can’t perform that action at this time.
0 commit comments