generated from PrincetonUniversity/template-ila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (37 loc) · 1.31 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.9.6)
# ---------------------------------------------------------------------------- #
# PROJECT
# name version language
# ---------------------------------------------------------------------------- #
project(vta VERSION 0.1 LANGUAGES CXX)
# ---------------------------------------------------------------------------- #
# VARIABLE
# alias and configurations
# ---------------------------------------------------------------------------- #
set(MyTarget ${PROJECT_NAME})
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
# ---------------------------------------------------------------------------- #
# External dependencies
# ---------------------------------------------------------------------------- #
##
## ilang
##
find_package(ilang REQUIRED)
# ---------------------------------------------------------------------------- #
# TARGET
# executable
# ---------------------------------------------------------------------------- #
add_executable(${MyTarget}
app/main.cc
src/vta_top.cc
src/top_io.cc
src/arch_state.cc
src/internal_state.cc
src/vta_instr.cc
src/child_instr_load.cc
src/child_instr_gemm.cc
src/child_instr_alu.cc
src/vir_mem_store.cc
)
target_include_directories(${MyTarget} PRIVATE include)
target_link_libraries(${MyTarget} ilang::ilang)