-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (21 loc) · 993 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.16)
project(bitsf VERSION 1.0.0 LANGUAGES C CXX)
enable_testing()
#========================================================#
# Verilator #
#========================================================#
add_definitions(-DVL_NO_LEGACY)
find_package(verilator REQUIRED)
#========================================================#
# CCache #
#========================================================#
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) # Less useful to do it for linking, see edit2
endif(CCACHE_FOUND)
#========================================================#
# Others #
#========================================================#
add_subdirectory(verilator)
add_subdirectory(fpga)