CMakeLists.txt 549 Bytes
Newer Older
Jing-Jia's avatar
Jing-Jia committed
cmake_minimum_required(VERSION 3.8)
Jing-Jia's avatar
Jing-Jia committed

# Define the project name of these source code
project (adder-qk-bus)

Jing-Jia's avatar
Jing-Jia committed
# Define the C++ standard -std=c++17
# This is required to match the systemc installed with Ubuntu
set (CMAKE_CXX_STANDARD 17)
Jing-Jia's avatar
Jing-Jia committed

# Add optimization & warning flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall")

# Define the executable name and its source code
file(GLOB SRC "*.cpp")
add_executable(adder-qk-bus ${SRC})

# Define the used libraries of the executable, Equal to -l flags of g++
Jing-Jia's avatar
Jing-Jia committed
target_link_libraries(adder-qk-bus systemc)