mirror of
https://github.com/verilator/verilator.git
synced 2025-04-05 04:02:37 +00:00
parent
607c19a67d
commit
833df6d9ea
@ -24,7 +24,7 @@ option(DEBUG_AND_RELEASE_AND_COVERAGE
|
|||||||
"Builds both the debug and release binaries, overriding CMAKE_BUILD_TYPE. Not supported under MSBuild.")
|
"Builds both the debug and release binaries, overriding CMAKE_BUILD_TYPE. Not supported under MSBuild.")
|
||||||
|
|
||||||
find_package(Python3 COMPONENTS Interpreter)
|
find_package(Python3 COMPONENTS Interpreter)
|
||||||
set(PYTHON3 Python3::Interpreter)
|
set(PYTHON3 ${Python3_EXECUTABLE})
|
||||||
set(CMAKE_INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX})
|
set(CMAKE_INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX})
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
@ -95,10 +95,14 @@ endif()
|
|||||||
|
|
||||||
set(PACKAGE_NAME ${PROJECT_NAME})
|
set(PACKAGE_NAME ${PROJECT_NAME})
|
||||||
set(PACKAGE_VERSION ${PROJECT_VERSION})
|
set(PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
|
set(CXX ${CMAKE_CXX_COMPILER})
|
||||||
|
set(AR ${CMAKE_AR})
|
||||||
|
|
||||||
configure_file(include/verilated_config.h.in include/verilated_config.h @ONLY)
|
configure_file(include/verilated_config.h.in include/verilated_config.h @ONLY)
|
||||||
|
configure_file(include/verilated.mk.in include/verilated.mk @ONLY)
|
||||||
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/verilated_config.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/verilated_config.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/verilated.mk DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
|
||||||
|
|
||||||
configure_package_config_file(verilator-config.cmake.in verilator-config.cmake
|
configure_package_config_file(verilator-config.cmake.in verilator-config.cmake
|
||||||
INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}
|
INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}
|
||||||
@ -118,6 +122,7 @@ foreach (program
|
|||||||
verilator_ccache_report
|
verilator_ccache_report
|
||||||
verilator_difftree
|
verilator_difftree
|
||||||
verilator_profcfunc
|
verilator_profcfunc
|
||||||
|
verilator_includer
|
||||||
)
|
)
|
||||||
install(PROGRAMS bin/${program} TYPE BIN)
|
install(PROGRAMS bin/${program} TYPE BIN)
|
||||||
endforeach()
|
endforeach()
|
||||||
@ -130,7 +135,6 @@ install(DIRECTORY examples TYPE DATA FILES_MATCHING
|
|||||||
|
|
||||||
install(DIRECTORY include TYPE DATA FILES_MATCHING
|
install(DIRECTORY include TYPE DATA FILES_MATCHING
|
||||||
PATTERN "include/verilated_config.h"
|
PATTERN "include/verilated_config.h"
|
||||||
PATTERN "include/verilated.mk"
|
|
||||||
PATTERN "include/*.[chv]"
|
PATTERN "include/*.[chv]"
|
||||||
PATTERN "include/*.cpp"
|
PATTERN "include/*.cpp"
|
||||||
PATTERN "include/*.sv"
|
PATTERN "include/*.sv"
|
||||||
|
@ -157,6 +157,7 @@ Pengcheng Xu
|
|||||||
Peter Debacker
|
Peter Debacker
|
||||||
Peter Horvath
|
Peter Horvath
|
||||||
Peter Monsson
|
Peter Monsson
|
||||||
|
Philip Axer
|
||||||
Philipp Wagner
|
Philipp Wagner
|
||||||
Pierre-Henri Horrein
|
Pierre-Henri Horrein
|
||||||
Pieter Kapsenberg
|
Pieter Kapsenberg
|
||||||
|
Loading…
Reference in New Issue
Block a user