BendCalc/CMakeLists.txt
2024-02-08 14:14:23 -08:00

37 lines
771 B
CMake

cmake_minimum_required(VERSION 3.13.4)
project(BendCalc)
# Set C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_CXX_FLAGS -g -Wall -Wextra -Werror -pedantic)
# Include directories
include_directories(include)
target_include_directories(include)
# Source files
set(SOURCES
src/main.cpp
src/Tonnage.cpp
src/Setback.cpp
src/Serializer.cpp
src/Kfactor.cpp
src/Deserializer.cpp
src/DataSave.cpp
src/DataLoad.cpp
include/Tonnage.h
include/Setback.h
include/Serializer.h
include/Kfactor.h
include/Deserializer.h
include/DataSave.h
include/DataLoad.h
)
# Create executable
add_executable(bend_calc ${SOURCES})