1 Star 0 Fork 26

sklink/EpicSim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Admin 提交于 2020-09-24 14:16 . update 1.0.2
cmake_minimum_required(VERSION 3.4.3)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
set(CMAKE_C_STANDARD 11)
project(EpicSim)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/install)
set(CMAKE_BUILD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type (default Release)" FORCE)
endif()
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if (CMAKE_BUILD_TYPE AND
NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE)$")
message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
endif()
# coverage option
OPTION (ENABLE_COVERAGE "Use gcov" OFF)
MESSAGE(STATUS ENABLE_COVERAGE=${ENABLE_COVERAGE})
IF(ENABLE_COVERAGE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
ENDIF()
# find dependency compile tools
# gperf
# bison
# flex
find_program(GPERF gperf)
if (GPERF-NOTFOUND)
message(FATAL_ERROR "please install gperf!")
endif()
find_program(BISON bison)
if (BISON-NOTFOUND)
message(FATAL_ERROR "please install bison!")
endif()
find_program(FLEX flex)
if (FLEX-NOTFOUND)
message(FATAL_ERROR "please install flex!")
endif()
set(PROJECT_BINARY_DIR ${PROJECT_SOURCE_DIR}/build)
#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/package)
add_subdirectory(ivl/)
add_subdirectory(ivlpp/)
add_subdirectory(driver/)
add_subdirectory(libveriuser/)
add_subdirectory(tgt-vvp/)
add_subdirectory(vhdlpp/)
add_subdirectory(vpi/)
add_subdirectory(vvp/)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sklink/EpicSim.git
git@gitee.com:sklink/EpicSim.git
sklink
EpicSim
EpicSim
master

搜索帮助