Skip to content

Commit

Permalink
cmake: Add static variant of Precompiles VM example for unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Nov 5, 2019
1 parent 310dc8e commit a94829a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/example_precompiles_vm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ add_library(example-precompiles-vm SHARED example_precompiles_vm.cpp example_pre
add_library(evmc::example-precompiles-vm ALIAS example-precompiles-vm)
target_link_libraries(example-precompiles-vm PRIVATE evmc)

add_library(example-precompiles-vm-static STATIC example_precompiles_vm.cpp example_precompiles_vm.h)
add_library(evmc::example-precompiles-vm-static ALIAS example-precompiles-vm-static)
target_link_libraries(example-precompiles-vm-static PRIVATE evmc)

set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
COMPILE_DEFINITIONS PROJECT_VERSION="${PROJECT_VERSION}")

Expand Down
2 changes: 1 addition & 1 deletion test/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ target_link_libraries(
PRIVATE
loader-mocked
evmc::example-vm-static
evmc::example-precompiles-vm
evmc::example-precompiles-vm-static
evmc-example-host
instructions
GTest::gtest_main
Expand Down

0 comments on commit a94829a

Please sign in to comment.