CMake: Install evmc.h header

This commit is contained in:
Paweł Bylica 2018-04-18 16:23:07 +02:00
parent 262211ab68
commit 0f13e0ba18
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ endif()
include(cmake/cable/bootstrap.cmake) include(cmake/cable/bootstrap.cmake)
include(CableCompilerSettings) include(CableCompilerSettings)
include(HunterGate) include(HunterGate)
include(GNUInstallDirs)
include(defaults/HunterCacheServers) include(defaults/HunterCacheServers)
# Setup Hunter. # Setup Hunter.
@ -29,6 +30,8 @@ cable_configure_compiler()
add_library(evmc INTERFACE) add_library(evmc INTERFACE)
target_include_directories(evmc INTERFACE include) target_include_directories(evmc INTERFACE include)
install(DIRECTORY include/evmc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
option(EVMC_BUILD_TESTS "Build EVMC tests and test tools" OFF) option(EVMC_BUILD_TESTS "Build EVMC tests and test tools" OFF)
if(EVMC_BUILD_TESTS) if(EVMC_BUILD_TESTS)
enable_testing() enable_testing()