You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
385 B
16 lines
385 B
# Add a library with the above sources
|
|
|
|
project(adder)
|
|
|
|
set(CMAKE_C_COMPILER "/usr/bin/cc")
|
|
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
|
|
set(CMAKE_VERBOSE_MAKEFILE off)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
|
|
|
add_library(${PROJECT_NAME} src/adder.cpp)
|
|
add_library(sub::adder ALIAS ${PROJECT_NAME})
|
|
|
|
target_include_directories( ${PROJECT_NAME}
|
|
PUBLIC ${PROJECT_SOURCE_DIR}/inc
|
|
)
|