2023-11-25 14:37:27 -08:00
|
|
|
cmake_minimum_required(VERSION 3.13.4)
|
2024-02-08 23:44:59 -08:00
|
|
|
project(BendCalc
|
|
|
|
VERSION 1.0.0
|
|
|
|
DESCRIPTION "An application for "
|
|
|
|
HOMEPAGE_URL "https://gitea.eventhorizonstudio.io/gbowne1/BendCalc"
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
|
|
|
include(CTest)
|
|
|
|
enable_testing()
|
2023-11-25 14:37:27 -08:00
|
|
|
|
|
|
|
# Set C++ standard
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
2024-02-08 23:44:59 -08:00
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
|
2024-02-08 14:14:23 -08:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
|
2024-02-08 23:44:59 -08:00
|
|
|
add_compile_options(-g -Wall -Wextra -Werror -pedantic)
|
|
|
|
|
2024-02-08 14:14:23 -08:00
|
|
|
set(CMAKE_CXX_COMPILER /usr/bin/g++)
|
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
|
2024-02-08 23:44:59 -08:00
|
|
|
src/Setback.cpp
|
|
|
|
src/Serializer.cpp
|
|
|
|
src/Kfactor.cpp
|
|
|
|
src/Deserializer.cpp
|
|
|
|
src/DataSave.cpp
|
|
|
|
src/DataLoad.cpp
|
|
|
|
src/BendDeduction.cpp
|
|
|
|
src/FormingTool.cpp
|
2023-11-25 14:37:27 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Create executable
|
2024-02-08 23:44:59 -08:00
|
|
|
add_executable(bendcalc ${SOURCES})
|
|
|
|
|
|
|
|
# Include directories
|
|
|
|
target_include_directories(bendcalc PUBLIC include)
|