evmc/test/CMakeLists.txt
Paweł Bylica 3c1427fe7c
CMake: Add option EVMC_TEST_TOOLS
This will build evmc-vmtester but without bothering with unit tests. This option implies build examples because they are needed for vmtester.
2019-03-14 17:37:26 +01:00

20 lines
443 B
CMake

# EVMC: Ethereum Client-VM Connector API.
# Copyright 2019 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.
hunter_add_package(GTest)
find_package(GTest CONFIG REQUIRED)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_EXTENSIONS OFF)
endif()
if(EVMC_TESTING)
add_subdirectory(integration)
add_subdirectory(unittests)
endif()
add_subdirectory(vmtester)