BendCalc/CMakeLists.txt

37 lines
771 B
CMake
Raw Normal View History

2023-11-25 14:37:27 -08:00
cmake_minimum_required(VERSION 3.13.4)
project(BendCalc)
# Set C++ standard
set(CMAKE_CXX_STANDARD 11)
2024-02-08 14:14:23 -08:00
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)
2023-11-25 14:37:27 -08:00
# Include directories
include_directories(include)
2024-02-08 14:14:23 -08:00
target_include_directories(include)
2023-11-25 14:37:27 -08:00
# Source files
set(SOURCES
src/main.cpp
2024-02-08 14:14:23 -08:00
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
2023-11-25 14:37:27 -08:00
)
# Create executable
add_executable(bend_calc ${SOURCES})