|
|
@ -2,5 +2,9 @@ cmake_minimum_required(VERSION 3.21) |
|
|
|
project(work20220325) |
|
|
|
project(work20220325) |
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14) |
|
|
|
set(CMAKE_CXX_STANDARD 14) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") |
|
|
|
add_compile_options(-finput-charset=GBK -fexec-charset=GBK) |
|
|
|
add_compile_options(-finput-charset=GBK -fexec-charset=GBK) |
|
|
|
|
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
add_executable(work20220325 main.cpp person/Person.cpp person/Person.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h person/students/TeachAssistant.cpp person/students/TeachAssistant.h) |
|
|
|
add_executable(work20220325 main.cpp person/Person.cpp person/Person.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h person/students/TeachAssistant.cpp person/students/TeachAssistant.h) |
|
|
|