Initial commit

This commit is contained in:
2025-02-08 20:21:42 -05:00
commit a4f7e614f1
7 changed files with 127 additions and 0 deletions

18
CMakeLists.txt Normal file
View File

@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.18)
project(polymorphism)
if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
message(FATAL_ERROR "In-Source builds are not allowed")
endif()
set(CMAKE_CXX_STANDARD 20)
file(GLOB_RECURSE HEADERS "include/*.h")
file(GLOB_RECURSE SOURCES "src/*.cpp" "main.cpp")
include_directories("include")
add_executable(polymorphism ${SOURCES})
set_target_properties(polymorphism PROPERTIES LINKER_LANGUAGE CXX)