Newer
Older
# Define the project name of these source code
project (adder-qk-bus)
# Define the C++ standard -std=c++17
# This is required to match the systemc installed with Ubuntu
set (CMAKE_CXX_STANDARD 17)
# 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++