-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (28 loc) · 806 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (28 loc) · 806 Bytes
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
# To run the code:
# - mkdir build && cd build
# - cmake ..
# - make
# cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.13.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
#set(CMAKE_OSX_ARCHITECTURES x86_64)
project(Die2Sim VERSION 0.9)
# project(Die2Sim) # creates ${PROJECT_NAME}
# target_compile_features(Die2Sim PUBLIC cxx_std_17)
set(SOURCES
src/main.cpp
src/ParserDef.cpp
src/ToJosim.cpp
src/ToVerilog.cpp
src/ParserJosim.cpp
src/genFunc.cpp
src/EmitterVerilog.cpp
src/TestPattern.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
# Ensures that the header files of the project is included
target_include_directories(${PROJECT_NAME} PRIVATE
${PROJECT_SOURCE_DIR}/include
)