forked from siracusa-soc/pulp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
27 lines (22 loc) · 890 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
cmake_minimum_required(VERSION 3.16.3)
project(sdk)
if(NOT DEFINED CONFIG_PULP_SDK_HOME)
message(STATUS "Using current directory as GAP SDK Home")
set(CONFIG_PULP_SDK_HOME ${CMAKE_CURRENT_SOURCE_DIR})
endif()
# Use CCache to speed up compilation if possible
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set(CMAKE_C_COMPILER_LAUNCHER ccache)
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
endif()
add_subdirectory(tools/gvsoc/common)
## Install pip requirements, note: does not install nntool reqs as building
## will do that
add_custom_target(
pip_install
COMMENT "install pip deps from requirements"
COMMAND pip install --user -r ${CONFIG_PULP_SDK_HOME}/requirements.txt
COMMAND pip install --user -r ${CONFIG_PULP_SDK_HOME}/tools/gapy_v2/requirements.txt
COMMAND pip install --user -r ${CONFIG_PULP_SDK_HOME}/tools/plptest/requirements.txt
)