diff --git a/CMakeLists.txt b/CMakeLists.txt index 33b160b..b768c7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5) message("Using CMake ${CMAKE_VERSION}\n") -project(LMS LANGUAGES CXX) +project(MPS LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOUIC ON) @@ -21,7 +21,7 @@ endif() include(cmake/CommonInfoForProject.cmake) -common_info_for_project(LMS) +common_info_for_project(MPS) find_package(Qt5 COMPONENTS Widgets REQUIRED) find_package(Qt5 COMPONENTS Network REQUIRED) @@ -30,14 +30,14 @@ find_package(Qt5 COMPONENTS LinguistTools REQUIRED) find_package(Qt5 COMPONENTS Xml REQUIRED) find_package(Qt5 COMPONENTS Concurrent REQUIRED) -add_subdirectory(DataBaseLMS) +add_subdirectory(DataBaseInterface) add_subdirectory(InstructorsAndTrainees) -add_subdirectory(GUIdataBaseLMS) -add_subdirectory(ServerLMS) -add_subdirectory(TrayServerLMS) +add_subdirectory(ProgramAWSinstructorMPS) +add_subdirectory(Server) +add_subdirectory(ProgramServerMPS) -add_dependencies(InstructorsAndTrainees DataBaseLMS) -add_dependencies(GUIdataBaseLMS InstructorsAndTrainees) -add_dependencies(ServerLMS DataBaseLMS) -add_dependencies(ServerLMS InstructorsAndTrainees) -add_dependencies(TrayServerLMS ServerLMS) +add_dependencies(InstructorsAndTrainees DataBaseInterface) +add_dependencies(ProgramAWSinstructorMPS InstructorsAndTrainees) +add_dependencies(Server DataBaseInterface) +add_dependencies(Server InstructorsAndTrainees) +add_dependencies(ProgramServerMPS Server) diff --git a/DataBaseInterface/CMakeLists.txt b/DataBaseInterface/CMakeLists.txt new file mode 100644 index 0000000..0010c74 --- /dev/null +++ b/DataBaseInterface/CMakeLists.txt @@ -0,0 +1,77 @@ +project(DataBaseInterface LANGUAGES CXX) + +common_info_for_project(DataBaseInterface) + +add_library(DataBaseInterface SHARED + DataBaseLMS_global.h + databaselms.cpp + databaselms_tasks.cpp + databaselms_groups.cpp + databaselms_users.cpp + databaselms_instructors.cpp + databaselms_trainees.cpp + databaselms_Postgresql.cpp + databaselms.h + interfacedatabaselms.cpp + interfacedatabaselms.h + basicentity.cpp + basicentity.h + user.cpp + user.h + instructor.cpp + instructor.h + trainee.cpp + trainee.h + group.cpp + group.h + computer.cpp + computer.h + classroom.cpp + classroom.h + tasksAmmFim.cpp + tasksAmmFim.h + typeQueryToDB.h + timingoftrainee.cpp + timingoftrainee.h + contactModel.h + hashtools.cpp + hashtools.h + DataBaseInterface.qrc +) + +target_link_libraries(DataBaseInterface PRIVATE Qt5::Widgets) +target_link_libraries(DataBaseInterface PRIVATE Qt5::Sql) +target_link_libraries(DataBaseInterface PRIVATE Qt5::Xml) + +target_compile_definitions(DataBaseInterface PRIVATE DATABASELMS_LIBRARY) + +if(PROJECT_TYPE_DEBUG) + + add_custom_command(TARGET DataBaseInterface + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface/libDataBaseInterface.dll + ${REPO_PATH}/BUILDS/Debug64/ProgramServerMPS) + + add_custom_command(TARGET DataBaseInterface + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface/libDataBaseInterface.dll + ${REPO_PATH}/BUILDS/Debug64/ProgramAWSinstructorMPS) +else() + + add_custom_command(TARGET DataBaseInterface + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Release64/DataBaseInterface/libDataBaseInterface.dll + ${REPO_PATH}/BUILDS/Release64/ProgramServerMPS) + + add_custom_command(TARGET DataBaseInterface + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Release64/DataBaseInterface/libDataBaseInterface.dll + ${REPO_PATH}/BUILDS/Release64/ProgramAWSinstructorMPS) +endif() + + + diff --git a/DataBaseLMS/CMakeLists.txt.user.00ce76f b/DataBaseInterface/CMakeLists.txt.user.00ce76f similarity index 100% rename from DataBaseLMS/CMakeLists.txt.user.00ce76f rename to DataBaseInterface/CMakeLists.txt.user.00ce76f diff --git a/DataBaseLMS/CMakeLists.txt.user.15ef247 b/DataBaseInterface/CMakeLists.txt.user.15ef247 similarity index 100% rename from DataBaseLMS/CMakeLists.txt.user.15ef247 rename to DataBaseInterface/CMakeLists.txt.user.15ef247 diff --git a/DataBaseLMS/DataBaseLMS.qrc b/DataBaseInterface/DataBaseInterface.qrc similarity index 100% rename from DataBaseLMS/DataBaseLMS.qrc rename to DataBaseInterface/DataBaseInterface.qrc diff --git a/DataBaseLMS/DataBaseLMS.pgerd b/DataBaseInterface/DataBaseLMS.pgerd similarity index 100% rename from DataBaseLMS/DataBaseLMS.pgerd rename to DataBaseInterface/DataBaseLMS.pgerd diff --git a/DataBaseLMS/DataBaseLMS_global.h b/DataBaseInterface/DataBaseLMS_global.h similarity index 100% rename from DataBaseLMS/DataBaseLMS_global.h rename to DataBaseInterface/DataBaseLMS_global.h diff --git a/DataBaseLMS/basicentity.cpp b/DataBaseInterface/basicentity.cpp similarity index 100% rename from DataBaseLMS/basicentity.cpp rename to DataBaseInterface/basicentity.cpp diff --git a/DataBaseLMS/basicentity.h b/DataBaseInterface/basicentity.h similarity index 100% rename from DataBaseLMS/basicentity.h rename to DataBaseInterface/basicentity.h diff --git a/DataBaseLMS/classroom.cpp b/DataBaseInterface/classroom.cpp similarity index 100% rename from DataBaseLMS/classroom.cpp rename to DataBaseInterface/classroom.cpp diff --git a/DataBaseLMS/classroom.h b/DataBaseInterface/classroom.h similarity index 100% rename from DataBaseLMS/classroom.h rename to DataBaseInterface/classroom.h diff --git a/DataBaseLMS/computer.cpp b/DataBaseInterface/computer.cpp similarity index 100% rename from DataBaseLMS/computer.cpp rename to DataBaseInterface/computer.cpp diff --git a/DataBaseLMS/computer.h b/DataBaseInterface/computer.h similarity index 100% rename from DataBaseLMS/computer.h rename to DataBaseInterface/computer.h diff --git a/DataBaseLMS/contactModel.h b/DataBaseInterface/contactModel.h similarity index 100% rename from DataBaseLMS/contactModel.h rename to DataBaseInterface/contactModel.h diff --git a/DataBaseLMS/databaselms.cpp b/DataBaseInterface/databaselms.cpp similarity index 100% rename from DataBaseLMS/databaselms.cpp rename to DataBaseInterface/databaselms.cpp diff --git a/DataBaseLMS/databaselms.h b/DataBaseInterface/databaselms.h similarity index 100% rename from DataBaseLMS/databaselms.h rename to DataBaseInterface/databaselms.h diff --git a/DataBaseLMS/databaselms_Postgresql.cpp b/DataBaseInterface/databaselms_Postgresql.cpp similarity index 100% rename from DataBaseLMS/databaselms_Postgresql.cpp rename to DataBaseInterface/databaselms_Postgresql.cpp diff --git a/DataBaseLMS/databaselms_groups.cpp b/DataBaseInterface/databaselms_groups.cpp similarity index 100% rename from DataBaseLMS/databaselms_groups.cpp rename to DataBaseInterface/databaselms_groups.cpp diff --git a/DataBaseLMS/databaselms_instructors.cpp b/DataBaseInterface/databaselms_instructors.cpp similarity index 100% rename from DataBaseLMS/databaselms_instructors.cpp rename to DataBaseInterface/databaselms_instructors.cpp diff --git a/DataBaseLMS/databaselms_tasks.cpp b/DataBaseInterface/databaselms_tasks.cpp similarity index 100% rename from DataBaseLMS/databaselms_tasks.cpp rename to DataBaseInterface/databaselms_tasks.cpp diff --git a/DataBaseLMS/databaselms_trainees.cpp b/DataBaseInterface/databaselms_trainees.cpp similarity index 100% rename from DataBaseLMS/databaselms_trainees.cpp rename to DataBaseInterface/databaselms_trainees.cpp diff --git a/DataBaseLMS/databaselms_users.cpp b/DataBaseInterface/databaselms_users.cpp similarity index 100% rename from DataBaseLMS/databaselms_users.cpp rename to DataBaseInterface/databaselms_users.cpp diff --git a/DataBaseLMS/group.cpp b/DataBaseInterface/group.cpp similarity index 100% rename from DataBaseLMS/group.cpp rename to DataBaseInterface/group.cpp diff --git a/DataBaseLMS/group.h b/DataBaseInterface/group.h similarity index 100% rename from DataBaseLMS/group.h rename to DataBaseInterface/group.h diff --git a/DataBaseLMS/hashtools.cpp b/DataBaseInterface/hashtools.cpp similarity index 100% rename from DataBaseLMS/hashtools.cpp rename to DataBaseInterface/hashtools.cpp diff --git a/DataBaseLMS/hashtools.h b/DataBaseInterface/hashtools.h similarity index 100% rename from DataBaseLMS/hashtools.h rename to DataBaseInterface/hashtools.h diff --git a/DataBaseLMS/instructor.cpp b/DataBaseInterface/instructor.cpp similarity index 100% rename from DataBaseLMS/instructor.cpp rename to DataBaseInterface/instructor.cpp diff --git a/DataBaseLMS/instructor.h b/DataBaseInterface/instructor.h similarity index 100% rename from DataBaseLMS/instructor.h rename to DataBaseInterface/instructor.h diff --git a/DataBaseLMS/interfacedatabaselms.cpp b/DataBaseInterface/interfacedatabaselms.cpp similarity index 100% rename from DataBaseLMS/interfacedatabaselms.cpp rename to DataBaseInterface/interfacedatabaselms.cpp diff --git a/DataBaseLMS/interfacedatabaselms.h b/DataBaseInterface/interfacedatabaselms.h similarity index 100% rename from DataBaseLMS/interfacedatabaselms.h rename to DataBaseInterface/interfacedatabaselms.h diff --git a/DataBaseLMS/resources/blankXML/ErrorDB.xml b/DataBaseInterface/resources/blankXML/ErrorDB.xml similarity index 100% rename from DataBaseLMS/resources/blankXML/ErrorDB.xml rename to DataBaseInterface/resources/blankXML/ErrorDB.xml diff --git a/DataBaseLMS/tasksAmmFim.cpp b/DataBaseInterface/tasksAmmFim.cpp similarity index 100% rename from DataBaseLMS/tasksAmmFim.cpp rename to DataBaseInterface/tasksAmmFim.cpp diff --git a/DataBaseLMS/tasksAmmFim.h b/DataBaseInterface/tasksAmmFim.h similarity index 100% rename from DataBaseLMS/tasksAmmFim.h rename to DataBaseInterface/tasksAmmFim.h diff --git a/DataBaseLMS/timingoftrainee.cpp b/DataBaseInterface/timingoftrainee.cpp similarity index 100% rename from DataBaseLMS/timingoftrainee.cpp rename to DataBaseInterface/timingoftrainee.cpp diff --git a/DataBaseLMS/timingoftrainee.h b/DataBaseInterface/timingoftrainee.h similarity index 100% rename from DataBaseLMS/timingoftrainee.h rename to DataBaseInterface/timingoftrainee.h diff --git a/DataBaseLMS/trainee.cpp b/DataBaseInterface/trainee.cpp similarity index 100% rename from DataBaseLMS/trainee.cpp rename to DataBaseInterface/trainee.cpp diff --git a/DataBaseLMS/trainee.h b/DataBaseInterface/trainee.h similarity index 100% rename from DataBaseLMS/trainee.h rename to DataBaseInterface/trainee.h diff --git a/DataBaseLMS/translations/DataBaseLMS_ru_RU.ts b/DataBaseInterface/translations/DataBaseLMS_ru_RU.ts similarity index 100% rename from DataBaseLMS/translations/DataBaseLMS_ru_RU.ts rename to DataBaseInterface/translations/DataBaseLMS_ru_RU.ts diff --git a/DataBaseLMS/typeQueryToDB.h b/DataBaseInterface/typeQueryToDB.h similarity index 100% rename from DataBaseLMS/typeQueryToDB.h rename to DataBaseInterface/typeQueryToDB.h diff --git a/DataBaseLMS/user.cpp b/DataBaseInterface/user.cpp similarity index 100% rename from DataBaseLMS/user.cpp rename to DataBaseInterface/user.cpp diff --git a/DataBaseLMS/user.h b/DataBaseInterface/user.h similarity index 100% rename from DataBaseLMS/user.h rename to DataBaseInterface/user.h diff --git a/DataBaseLMS/CMakeLists.txt b/DataBaseLMS/CMakeLists.txt deleted file mode 100644 index 84ce26e..0000000 --- a/DataBaseLMS/CMakeLists.txt +++ /dev/null @@ -1,77 +0,0 @@ -project(DataBaseLMS LANGUAGES CXX) - -common_info_for_project(DataBaseLMS) - -add_library(DataBaseLMS SHARED - DataBaseLMS_global.h - databaselms.cpp - databaselms_tasks.cpp - databaselms_groups.cpp - databaselms_users.cpp - databaselms_instructors.cpp - databaselms_trainees.cpp - databaselms_Postgresql.cpp - databaselms.h - interfacedatabaselms.cpp - interfacedatabaselms.h - basicentity.cpp - basicentity.h - user.cpp - user.h - instructor.cpp - instructor.h - trainee.cpp - trainee.h - group.cpp - group.h - computer.cpp - computer.h - classroom.cpp - classroom.h - tasksAmmFim.cpp - tasksAmmFim.h - typeQueryToDB.h - timingoftrainee.cpp - timingoftrainee.h - contactModel.h - hashtools.cpp - hashtools.h - DataBaseLMS.qrc -) - -target_link_libraries(DataBaseLMS PRIVATE Qt5::Widgets) -target_link_libraries(DataBaseLMS PRIVATE Qt5::Sql) -target_link_libraries(DataBaseLMS PRIVATE Qt5::Xml) - -target_compile_definitions(DataBaseLMS PRIVATE DATABASELMS_LIBRARY) - -if(PROJECT_TYPE_DEBUG) - - add_custom_command(TARGET DataBaseLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Debug64/TrayServerLMS) - - add_custom_command(TARGET DataBaseLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Debug64/GUIdataBaseLMS) -else() - - add_custom_command(TARGET DataBaseLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Release64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Release64/TrayServerLMS) - - add_custom_command(TARGET DataBaseLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Release64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Release64/GUIdataBaseLMS) -endif() - - - diff --git a/GUIdataBaseLMS/CMakeLists.txt b/GUIdataBaseLMS/CMakeLists.txt deleted file mode 100644 index 2164fab..0000000 --- a/GUIdataBaseLMS/CMakeLists.txt +++ /dev/null @@ -1,55 +0,0 @@ -project(GUIdataBaseLMS LANGUAGES CXX) - -common_info_for_project(GUIdataBaseLMS) - -# Подключаем RC-файл (только для Windows) -if(WIN32) - # Предполагая, что файл app.rc расположен в корневом каталоге проекта - set(RC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/app.rc) -endif() - -add_executable(GUIdataBaseLMS WIN32 -main.cpp -mainwindow.cpp -mainwindow.h -mainwindow.ui -GUIdataBaseLMS.qrc -) - -# Подключаем RC-файл к цели -if(RC_FILE) - target_sources(${PROJECT_NAME} PRIVATE ${RC_FILE}) -endif() - -target_link_libraries(GUIdataBaseLMS PRIVATE Qt5::Widgets) -target_link_libraries(GUIdataBaseLMS PRIVATE Qt5::Sql) -target_link_libraries(GUIdataBaseLMS PRIVATE Qt5::Xml) -target_link_libraries(GUIdataBaseLMS PRIVATE Qt5::Network) - -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/instructors) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/trainees) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/docTasks) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/connectorToServer) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/connectorToServer/Core) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/messanger) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/settings) -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/authorization) -if(PROJECT_TYPE_DEBUG) - target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees) -else() - target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees) -endif() -target_link_libraries(GUIdataBaseLMS PRIVATE libInstructorsAndTrainees.dll) - - -target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) -if(PROJECT_TYPE_DEBUG) - target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) -else() - target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) -endif() -target_link_libraries(GUIdataBaseLMS PRIVATE libDataBaseLMS.dll) diff --git a/InstructorsAndTrainees/CMakeLists.txt b/InstructorsAndTrainees/CMakeLists.txt index 2731772..18a99d1 100644 --- a/InstructorsAndTrainees/CMakeLists.txt +++ b/InstructorsAndTrainees/CMakeLists.txt @@ -163,37 +163,37 @@ target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_ target_compile_definitions(InstructorsAndTrainees PRIVATE INSTRUCTORSANDTRAINEES_LIBRARY) -target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) +target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseInterface) if(PROJECT_TYPE_DEBUG) - target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) + target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface) else() - target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) + target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseInterface) endif() -target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll) +target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseInterface.dll) if(PROJECT_TYPE_DEBUG) add_custom_command(TARGET InstructorsAndTrainees POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll - ${REPO_PATH}/BUILDS/Debug64/GUIdataBaseLMS) + ${REPO_PATH}/BUILDS/Debug64/ProgramAWSinstructorMPS) add_custom_command(TARGET InstructorsAndTrainees POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll - ${REPO_PATH}/BUILDS/Debug64/TrayServerLMS) + ${REPO_PATH}/BUILDS/Debug64/ProgramServerMPS) else() add_custom_command(TARGET InstructorsAndTrainees POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll - ${REPO_PATH}/BUILDS/Release64/GUIdataBaseLMS) + ${REPO_PATH}/BUILDS/Release64/ProgramAWSinstructorMPS) add_custom_command(TARGET InstructorsAndTrainees POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll - ${REPO_PATH}/BUILDS/Release64/TrayServerLMS) + ${REPO_PATH}/BUILDS/Release64/ProgramServerMPS) endif() #Только для TSMP! diff --git a/ProgramAWSinstructorMPS/CMakeLists.txt b/ProgramAWSinstructorMPS/CMakeLists.txt new file mode 100644 index 0000000..d8671b3 --- /dev/null +++ b/ProgramAWSinstructorMPS/CMakeLists.txt @@ -0,0 +1,55 @@ +project(ProgramAWSinstructorMPS LANGUAGES CXX) + +common_info_for_project(ProgramAWSinstructorMPS) + +# Подключаем RC-файл (только для Windows) +if(WIN32) + # Предполагая, что файл app.rc расположен в корневом каталоге проекта + set(RC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/app.rc) +endif() + +add_executable(ProgramAWSinstructorMPS WIN32 +main.cpp +mainwindow.cpp +mainwindow.h +mainwindow.ui +ProgramAWSinstructorMPS.qrc +) + +# Подключаем RC-файл к цели +if(RC_FILE) + target_sources(ProgramAWSinstructorMPS PRIVATE ${RC_FILE}) +endif() + +target_link_libraries(ProgramAWSinstructorMPS PRIVATE Qt5::Widgets) +target_link_libraries(ProgramAWSinstructorMPS PRIVATE Qt5::Sql) +target_link_libraries(ProgramAWSinstructorMPS PRIVATE Qt5::Xml) +target_link_libraries(ProgramAWSinstructorMPS PRIVATE Qt5::Network) + +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/instructors) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/trainees) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/docTasks) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/connectorToServer) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/connectorToServer/Core) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/messanger) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/settings) +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/authorization) +if(PROJECT_TYPE_DEBUG) + target_link_directories(ProgramAWSinstructorMPS PUBLIC ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees) +else() + target_link_directories(ProgramAWSinstructorMPS PUBLIC ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees) +endif() +target_link_libraries(ProgramAWSinstructorMPS PRIVATE libInstructorsAndTrainees.dll) + + +target_include_directories(ProgramAWSinstructorMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseInterface) +if(PROJECT_TYPE_DEBUG) + target_link_directories(ProgramAWSinstructorMPS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface) +else() + target_link_directories(ProgramAWSinstructorMPS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseInterface) +endif() +target_link_libraries(ProgramAWSinstructorMPS PRIVATE libDataBaseInterface.dll) diff --git a/GUIdataBaseLMS/CMakeLists.txt.user.00ce76f b/ProgramAWSinstructorMPS/CMakeLists.txt.user.00ce76f similarity index 100% rename from GUIdataBaseLMS/CMakeLists.txt.user.00ce76f rename to ProgramAWSinstructorMPS/CMakeLists.txt.user.00ce76f diff --git a/GUIdataBaseLMS/CMakeLists.txt.user.15ef247 b/ProgramAWSinstructorMPS/CMakeLists.txt.user.15ef247 similarity index 100% rename from GUIdataBaseLMS/CMakeLists.txt.user.15ef247 rename to ProgramAWSinstructorMPS/CMakeLists.txt.user.15ef247 diff --git a/GUIdataBaseLMS/GUIdataBaseLMS.qrc b/ProgramAWSinstructorMPS/ProgramAWSinstructorMPS.qrc similarity index 100% rename from GUIdataBaseLMS/GUIdataBaseLMS.qrc rename to ProgramAWSinstructorMPS/ProgramAWSinstructorMPS.qrc diff --git a/GUIdataBaseLMS/app.rc b/ProgramAWSinstructorMPS/app.rc similarity index 100% rename from GUIdataBaseLMS/app.rc rename to ProgramAWSinstructorMPS/app.rc diff --git a/GUIdataBaseLMS/main.cpp b/ProgramAWSinstructorMPS/main.cpp similarity index 100% rename from GUIdataBaseLMS/main.cpp rename to ProgramAWSinstructorMPS/main.cpp diff --git a/GUIdataBaseLMS/mainwindow.cpp b/ProgramAWSinstructorMPS/mainwindow.cpp similarity index 100% rename from GUIdataBaseLMS/mainwindow.cpp rename to ProgramAWSinstructorMPS/mainwindow.cpp diff --git a/GUIdataBaseLMS/mainwindow.h b/ProgramAWSinstructorMPS/mainwindow.h similarity index 100% rename from GUIdataBaseLMS/mainwindow.h rename to ProgramAWSinstructorMPS/mainwindow.h diff --git a/GUIdataBaseLMS/mainwindow.ui b/ProgramAWSinstructorMPS/mainwindow.ui similarity index 100% rename from GUIdataBaseLMS/mainwindow.ui rename to ProgramAWSinstructorMPS/mainwindow.ui diff --git a/GUIdataBaseLMS/resources/IcoGUIRRJ.ico b/ProgramAWSinstructorMPS/resources/IcoGUIRRJ.ico similarity index 100% rename from GUIdataBaseLMS/resources/IcoGUIRRJ.ico rename to ProgramAWSinstructorMPS/resources/IcoGUIRRJ.ico diff --git a/GUIdataBaseLMS/resources/PngGUIRRJ.png b/ProgramAWSinstructorMPS/resources/PngGUIRRJ.png similarity index 100% rename from GUIdataBaseLMS/resources/PngGUIRRJ.png rename to ProgramAWSinstructorMPS/resources/PngGUIRRJ.png diff --git a/GUIdataBaseLMS/translations/GUIdataBaseLMS_ru_RU.qm b/ProgramAWSinstructorMPS/translations/GUIdataBaseLMS_ru_RU.qm similarity index 100% rename from GUIdataBaseLMS/translations/GUIdataBaseLMS_ru_RU.qm rename to ProgramAWSinstructorMPS/translations/GUIdataBaseLMS_ru_RU.qm diff --git a/GUIdataBaseLMS/translations/GUIdataBaseLMS_ru_RU.ts b/ProgramAWSinstructorMPS/translations/GUIdataBaseLMS_ru_RU.ts similarity index 100% rename from GUIdataBaseLMS/translations/GUIdataBaseLMS_ru_RU.ts rename to ProgramAWSinstructorMPS/translations/GUIdataBaseLMS_ru_RU.ts diff --git a/ProgramServerMPS/CMakeLists.txt b/ProgramServerMPS/CMakeLists.txt new file mode 100644 index 0000000..3690f01 --- /dev/null +++ b/ProgramServerMPS/CMakeLists.txt @@ -0,0 +1,52 @@ +project(ProgramServerMPS LANGUAGES CXX) + +common_info_for_project(ProgramServerMPS) + +# Подключаем RC-файл (только для Windows) +if(WIN32) + # Предполагая, что файл app.rc расположен в корневом каталоге проекта + set(RC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/app.rc) +endif() + +add_executable(ProgramServerMPS WIN32 +main.cpp +mainwindow.cpp +mainwindow.h +mainwindow.ui +ProgramServerMPS.qrc +) + +# Подключаем RC-файл к цели +if(RC_FILE) + target_sources(ProgramServerMPS PRIVATE ${RC_FILE}) +endif() + +target_link_libraries(ProgramServerMPS PRIVATE Qt5::Widgets) +target_link_libraries(ProgramServerMPS PRIVATE Qt5::Network) +target_link_libraries(ProgramServerMPS PRIVATE Qt5::Sql) +target_link_libraries(ProgramServerMPS PRIVATE Qt5::Xml) + +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseInterface) +if(PROJECT_TYPE_DEBUG) + target_link_directories(ProgramServerMPS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface) +else() + target_link_directories(ProgramServerMPS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseInterface) +endif() +target_link_libraries(ProgramServerMPS PRIVATE libDataBaseInterface.dll) + +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../Server) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../Server/clienthandler) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../Server/multithreadserver) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../Server/providerdblms) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../Server/Systems) +if(PROJECT_TYPE_DEBUG) + target_link_directories(ProgramServerMPS PUBLIC ${REPO_PATH}/BUILDS/Debug64/Server) +else() + target_link_directories(ProgramServerMPS PUBLIC ${REPO_PATH}/BUILDS/Release64/Server) +endif() +target_link_libraries(ProgramServerMPS PRIVATE libServer.dll) + +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) +target_include_directories(ProgramServerMPS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox) diff --git a/TrayServerLMS/CMakeLists.txt.user.00ce76f b/ProgramServerMPS/CMakeLists.txt.user.00ce76f similarity index 100% rename from TrayServerLMS/CMakeLists.txt.user.00ce76f rename to ProgramServerMPS/CMakeLists.txt.user.00ce76f diff --git a/TrayServerLMS/CMakeLists.txt.user.15ef247 b/ProgramServerMPS/CMakeLists.txt.user.15ef247 similarity index 100% rename from TrayServerLMS/CMakeLists.txt.user.15ef247 rename to ProgramServerMPS/CMakeLists.txt.user.15ef247 diff --git a/TrayServerLMS/TrayServerLMS.qrc b/ProgramServerMPS/ProgramServerMPS.qrc similarity index 100% rename from TrayServerLMS/TrayServerLMS.qrc rename to ProgramServerMPS/ProgramServerMPS.qrc diff --git a/TrayServerLMS/app.rc b/ProgramServerMPS/app.rc similarity index 100% rename from TrayServerLMS/app.rc rename to ProgramServerMPS/app.rc diff --git a/TrayServerLMS/main.cpp b/ProgramServerMPS/main.cpp similarity index 100% rename from TrayServerLMS/main.cpp rename to ProgramServerMPS/main.cpp diff --git a/TrayServerLMS/mainwindow.cpp b/ProgramServerMPS/mainwindow.cpp similarity index 100% rename from TrayServerLMS/mainwindow.cpp rename to ProgramServerMPS/mainwindow.cpp diff --git a/TrayServerLMS/mainwindow.h b/ProgramServerMPS/mainwindow.h similarity index 100% rename from TrayServerLMS/mainwindow.h rename to ProgramServerMPS/mainwindow.h diff --git a/TrayServerLMS/mainwindow.ui b/ProgramServerMPS/mainwindow.ui similarity index 100% rename from TrayServerLMS/mainwindow.ui rename to ProgramServerMPS/mainwindow.ui diff --git a/TrayServerLMS/resources/IcoServerRRJ.ico b/ProgramServerMPS/resources/IcoServerRRJ.ico similarity index 100% rename from TrayServerLMS/resources/IcoServerRRJ.ico rename to ProgramServerMPS/resources/IcoServerRRJ.ico diff --git a/TrayServerLMS/resources/PngServerRRJ.png b/ProgramServerMPS/resources/PngServerRRJ.png similarity index 100% rename from TrayServerLMS/resources/PngServerRRJ.png rename to ProgramServerMPS/resources/PngServerRRJ.png diff --git a/TrayServerLMS/translations/TrayServerLMS_ru_RU.qm b/ProgramServerMPS/translations/TrayServerLMS_ru_RU.qm similarity index 100% rename from TrayServerLMS/translations/TrayServerLMS_ru_RU.qm rename to ProgramServerMPS/translations/TrayServerLMS_ru_RU.qm diff --git a/TrayServerLMS/translations/TrayServerLMS_ru_RU.ts b/ProgramServerMPS/translations/TrayServerLMS_ru_RU.ts similarity index 100% rename from TrayServerLMS/translations/TrayServerLMS_ru_RU.ts rename to ProgramServerMPS/translations/TrayServerLMS_ru_RU.ts diff --git a/Server/CMakeLists.txt b/Server/CMakeLists.txt new file mode 100644 index 0000000..909ee77 --- /dev/null +++ b/Server/CMakeLists.txt @@ -0,0 +1,112 @@ +project(Server LANGUAGES CXX) + +common_info_for_project(Server) + +add_library(Server SHARED + ServerLMS_global.h + serverlmswidget.cpp + serverlmswidget.h + serverlmswidget.ui + metatypes.cpp + metatypes.h + settings/dialogsettingstray.cpp + settings/dialogsettingstray.h + settings/dialogsettingstray.ui + settings/dialogcheckdb.cpp + settings/dialogcheckdb.h + settings/dialogcheckdb.ui + clienthandler/clienthandler.cpp + clienthandler/clienthandler.h + multithreadserver/multithreadserver.cpp + multithreadserver/multithreadserver.h + Data/typesDataServerClient.h + Data/Client.h + Data/PacketType.h + Data/StreamingVersionData.h + Data/usertype.h + Systems/assetsmanager.cpp + Systems/assetsmanager.h + Systems/recognizesystem.cpp + Systems/recognizesystem.h + Systems/updatecontroller.cpp + Systems/updatecontroller.h + Systems/commonclienthandler.cpp + Systems/commonclienthandler.h + Systems/logger.cpp + Systems/logger.h + Systems/Parsers/dataparser.cpp + Systems/Parsers/dataparser.h + Systems/Parsers/clientanswerparser.cpp + Systems/Parsers/clientanswerparser.h + Systems/Parsers/dbanswerparser.cpp + Systems/Parsers/dbanswerparser.h + Systems/Parsers/processparser.cpp + Systems/Parsers/processparser.h + Systems/Parsers/docsanswerparser.cpp + Systems/Parsers/docsanswerparser.h + Systems/processingsystem.cpp + Systems/processingsystem.h + Systems/sendsystem.cpp + Systems/sendsystem.h + Systems/tools.cpp + Systems/tools.h + Systems/chatsystem.cpp + Systems/chatsystem.h + Systems/fasthashcalculator.cpp + Systems/fasthashcalculator.h + Systems/docsupdater.cpp + Systems/docsupdater.h + providerdblms/providerdblms.cpp + providerdblms/providerdblms.h + Server.qrc +) + +target_link_libraries(Server PRIVATE Qt5::Widgets) +target_link_libraries(Server PRIVATE Qt5::Network) +target_link_libraries(Server PRIVATE Qt5::Concurrent) +target_link_libraries(Server PRIVATE Qt5::Sql) +target_link_libraries(Server PRIVATE Qt5::Xml) + +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/clienthandler) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/multithreadserver) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/providerdblms) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/settings) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Data) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Systems) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Systems/Parsers) + +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseInterface) +if(PROJECT_TYPE_DEBUG) + target_link_directories(Server PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseInterface) +else() + target_link_directories(Server PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseInterface) +endif() +target_link_libraries(Server PRIVATE libDataBaseInterface.dll) + +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/authorization) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) +target_include_directories(Server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox) +if(PROJECT_TYPE_DEBUG) + target_link_directories(Server PUBLIC ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees) +else() + target_link_directories(Server PUBLIC ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees) +endif() +target_link_libraries(Server PRIVATE libInstructorsAndTrainees.dll) + +target_compile_definitions(Server PRIVATE SERVERLMS_LIBRARY) + +if(PROJECT_TYPE_DEBUG) + add_custom_command(TARGET Server + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Debug64/Server/libServer.dll + ${REPO_PATH}/BUILDS/Debug64/ProgramServerMPS) +else() + add_custom_command(TARGET Server + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${REPO_PATH}/BUILDS/Release64/Server/libServer.dll + ${REPO_PATH}/BUILDS/Release64/ProgramServerMPS) +endif() diff --git a/ServerLMS/CMakeLists.txt.user.00ce76f b/Server/CMakeLists.txt.user.00ce76f similarity index 100% rename from ServerLMS/CMakeLists.txt.user.00ce76f rename to Server/CMakeLists.txt.user.00ce76f diff --git a/ServerLMS/CMakeLists.txt.user.02bbda2 b/Server/CMakeLists.txt.user.02bbda2 similarity index 100% rename from ServerLMS/CMakeLists.txt.user.02bbda2 rename to Server/CMakeLists.txt.user.02bbda2 diff --git a/ServerLMS/CMakeLists.txt.user.15ef247 b/Server/CMakeLists.txt.user.15ef247 similarity index 100% rename from ServerLMS/CMakeLists.txt.user.15ef247 rename to Server/CMakeLists.txt.user.15ef247 diff --git a/ServerLMS/Data/Client.h b/Server/Data/Client.h similarity index 100% rename from ServerLMS/Data/Client.h rename to Server/Data/Client.h diff --git a/ServerLMS/Data/PacketType.h b/Server/Data/PacketType.h similarity index 100% rename from ServerLMS/Data/PacketType.h rename to Server/Data/PacketType.h diff --git a/ServerLMS/Data/StreamingVersionData.h b/Server/Data/StreamingVersionData.h similarity index 100% rename from ServerLMS/Data/StreamingVersionData.h rename to Server/Data/StreamingVersionData.h diff --git a/ServerLMS/Data/typesDataServerClient.h b/Server/Data/typesDataServerClient.h similarity index 100% rename from ServerLMS/Data/typesDataServerClient.h rename to Server/Data/typesDataServerClient.h diff --git a/ServerLMS/Data/userType.h b/Server/Data/userType.h similarity index 100% rename from ServerLMS/Data/userType.h rename to Server/Data/userType.h diff --git a/ServerLMS/ServerLMS.qrc b/Server/Server.qrc similarity index 100% rename from ServerLMS/ServerLMS.qrc rename to Server/Server.qrc diff --git a/ServerLMS/ServerLMS_global.h b/Server/ServerLMS_global.h similarity index 100% rename from ServerLMS/ServerLMS_global.h rename to Server/ServerLMS_global.h diff --git a/ServerLMS/Systems/.vs/ProjectSettings.json b/Server/Systems/.vs/ProjectSettings.json similarity index 100% rename from ServerLMS/Systems/.vs/ProjectSettings.json rename to Server/Systems/.vs/ProjectSettings.json diff --git a/ServerLMS/Systems/.vs/Systems/v16/.suo b/Server/Systems/.vs/Systems/v16/.suo similarity index 100% rename from ServerLMS/Systems/.vs/Systems/v16/.suo rename to Server/Systems/.vs/Systems/v16/.suo diff --git a/ServerLMS/Systems/.vs/Systems/v16/Browse.VC.db b/Server/Systems/.vs/Systems/v16/Browse.VC.db similarity index 100% rename from ServerLMS/Systems/.vs/Systems/v16/Browse.VC.db rename to Server/Systems/.vs/Systems/v16/Browse.VC.db diff --git a/ServerLMS/Systems/.vs/VSWorkspaceState.json b/Server/Systems/.vs/VSWorkspaceState.json similarity index 100% rename from ServerLMS/Systems/.vs/VSWorkspaceState.json rename to Server/Systems/.vs/VSWorkspaceState.json diff --git a/ServerLMS/Systems/.vs/slnx.sqlite b/Server/Systems/.vs/slnx.sqlite similarity index 100% rename from ServerLMS/Systems/.vs/slnx.sqlite rename to Server/Systems/.vs/slnx.sqlite diff --git a/ServerLMS/Systems/Parsers/clientanswerparser.cpp b/Server/Systems/Parsers/clientanswerparser.cpp similarity index 100% rename from ServerLMS/Systems/Parsers/clientanswerparser.cpp rename to Server/Systems/Parsers/clientanswerparser.cpp diff --git a/ServerLMS/Systems/Parsers/clientanswerparser.h b/Server/Systems/Parsers/clientanswerparser.h similarity index 100% rename from ServerLMS/Systems/Parsers/clientanswerparser.h rename to Server/Systems/Parsers/clientanswerparser.h diff --git a/ServerLMS/Systems/Parsers/dataparser.cpp b/Server/Systems/Parsers/dataparser.cpp similarity index 100% rename from ServerLMS/Systems/Parsers/dataparser.cpp rename to Server/Systems/Parsers/dataparser.cpp diff --git a/ServerLMS/Systems/Parsers/dataparser.h b/Server/Systems/Parsers/dataparser.h similarity index 100% rename from ServerLMS/Systems/Parsers/dataparser.h rename to Server/Systems/Parsers/dataparser.h diff --git a/ServerLMS/Systems/Parsers/dbanswerparser.cpp b/Server/Systems/Parsers/dbanswerparser.cpp similarity index 100% rename from ServerLMS/Systems/Parsers/dbanswerparser.cpp rename to Server/Systems/Parsers/dbanswerparser.cpp diff --git a/ServerLMS/Systems/Parsers/dbanswerparser.h b/Server/Systems/Parsers/dbanswerparser.h similarity index 100% rename from ServerLMS/Systems/Parsers/dbanswerparser.h rename to Server/Systems/Parsers/dbanswerparser.h diff --git a/ServerLMS/Systems/Parsers/docsanswerparser.cpp b/Server/Systems/Parsers/docsanswerparser.cpp similarity index 100% rename from ServerLMS/Systems/Parsers/docsanswerparser.cpp rename to Server/Systems/Parsers/docsanswerparser.cpp diff --git a/ServerLMS/Systems/Parsers/docsanswerparser.h b/Server/Systems/Parsers/docsanswerparser.h similarity index 100% rename from ServerLMS/Systems/Parsers/docsanswerparser.h rename to Server/Systems/Parsers/docsanswerparser.h diff --git a/ServerLMS/Systems/Parsers/processparser.cpp b/Server/Systems/Parsers/processparser.cpp similarity index 100% rename from ServerLMS/Systems/Parsers/processparser.cpp rename to Server/Systems/Parsers/processparser.cpp diff --git a/ServerLMS/Systems/Parsers/processparser.h b/Server/Systems/Parsers/processparser.h similarity index 100% rename from ServerLMS/Systems/Parsers/processparser.h rename to Server/Systems/Parsers/processparser.h diff --git a/ServerLMS/Systems/assetsmanager.cpp b/Server/Systems/assetsmanager.cpp similarity index 100% rename from ServerLMS/Systems/assetsmanager.cpp rename to Server/Systems/assetsmanager.cpp diff --git a/ServerLMS/Systems/assetsmanager.h b/Server/Systems/assetsmanager.h similarity index 100% rename from ServerLMS/Systems/assetsmanager.h rename to Server/Systems/assetsmanager.h diff --git a/ServerLMS/Systems/chatsystem.cpp b/Server/Systems/chatsystem.cpp similarity index 100% rename from ServerLMS/Systems/chatsystem.cpp rename to Server/Systems/chatsystem.cpp diff --git a/ServerLMS/Systems/chatsystem.h b/Server/Systems/chatsystem.h similarity index 100% rename from ServerLMS/Systems/chatsystem.h rename to Server/Systems/chatsystem.h diff --git a/ServerLMS/Systems/commonclienthandler.cpp b/Server/Systems/commonclienthandler.cpp similarity index 100% rename from ServerLMS/Systems/commonclienthandler.cpp rename to Server/Systems/commonclienthandler.cpp diff --git a/ServerLMS/Systems/commonclienthandler.h b/Server/Systems/commonclienthandler.h similarity index 100% rename from ServerLMS/Systems/commonclienthandler.h rename to Server/Systems/commonclienthandler.h diff --git a/ServerLMS/Systems/docsupdater.cpp b/Server/Systems/docsupdater.cpp similarity index 100% rename from ServerLMS/Systems/docsupdater.cpp rename to Server/Systems/docsupdater.cpp diff --git a/ServerLMS/Systems/docsupdater.h b/Server/Systems/docsupdater.h similarity index 100% rename from ServerLMS/Systems/docsupdater.h rename to Server/Systems/docsupdater.h diff --git a/ServerLMS/Systems/fasthashcalculator.cpp b/Server/Systems/fasthashcalculator.cpp similarity index 100% rename from ServerLMS/Systems/fasthashcalculator.cpp rename to Server/Systems/fasthashcalculator.cpp diff --git a/ServerLMS/Systems/fasthashcalculator.h b/Server/Systems/fasthashcalculator.h similarity index 100% rename from ServerLMS/Systems/fasthashcalculator.h rename to Server/Systems/fasthashcalculator.h diff --git a/ServerLMS/Systems/logger.cpp b/Server/Systems/logger.cpp similarity index 100% rename from ServerLMS/Systems/logger.cpp rename to Server/Systems/logger.cpp diff --git a/ServerLMS/Systems/logger.h b/Server/Systems/logger.h similarity index 100% rename from ServerLMS/Systems/logger.h rename to Server/Systems/logger.h diff --git a/ServerLMS/Systems/processingsystem.cpp b/Server/Systems/processingsystem.cpp similarity index 100% rename from ServerLMS/Systems/processingsystem.cpp rename to Server/Systems/processingsystem.cpp diff --git a/ServerLMS/Systems/processingsystem.h b/Server/Systems/processingsystem.h similarity index 100% rename from ServerLMS/Systems/processingsystem.h rename to Server/Systems/processingsystem.h diff --git a/ServerLMS/Systems/recognizesystem.cpp b/Server/Systems/recognizesystem.cpp similarity index 100% rename from ServerLMS/Systems/recognizesystem.cpp rename to Server/Systems/recognizesystem.cpp diff --git a/ServerLMS/Systems/recognizesystem.h b/Server/Systems/recognizesystem.h similarity index 100% rename from ServerLMS/Systems/recognizesystem.h rename to Server/Systems/recognizesystem.h diff --git a/ServerLMS/Systems/sendsystem.cpp b/Server/Systems/sendsystem.cpp similarity index 100% rename from ServerLMS/Systems/sendsystem.cpp rename to Server/Systems/sendsystem.cpp diff --git a/ServerLMS/Systems/sendsystem.h b/Server/Systems/sendsystem.h similarity index 100% rename from ServerLMS/Systems/sendsystem.h rename to Server/Systems/sendsystem.h diff --git a/ServerLMS/Systems/tools.cpp b/Server/Systems/tools.cpp similarity index 100% rename from ServerLMS/Systems/tools.cpp rename to Server/Systems/tools.cpp diff --git a/ServerLMS/Systems/tools.h b/Server/Systems/tools.h similarity index 100% rename from ServerLMS/Systems/tools.h rename to Server/Systems/tools.h diff --git a/ServerLMS/Systems/updatecontroller.cpp b/Server/Systems/updatecontroller.cpp similarity index 100% rename from ServerLMS/Systems/updatecontroller.cpp rename to Server/Systems/updatecontroller.cpp diff --git a/ServerLMS/Systems/updatecontroller.h b/Server/Systems/updatecontroller.h similarity index 100% rename from ServerLMS/Systems/updatecontroller.h rename to Server/Systems/updatecontroller.h diff --git a/ServerLMS/clienthandler/clienthandler.cpp b/Server/clienthandler/clienthandler.cpp similarity index 100% rename from ServerLMS/clienthandler/clienthandler.cpp rename to Server/clienthandler/clienthandler.cpp diff --git a/ServerLMS/clienthandler/clienthandler.h b/Server/clienthandler/clienthandler.h similarity index 100% rename from ServerLMS/clienthandler/clienthandler.h rename to Server/clienthandler/clienthandler.h diff --git a/ServerLMS/metatypes.cpp b/Server/metatypes.cpp similarity index 100% rename from ServerLMS/metatypes.cpp rename to Server/metatypes.cpp diff --git a/ServerLMS/metatypes.h b/Server/metatypes.h similarity index 100% rename from ServerLMS/metatypes.h rename to Server/metatypes.h diff --git a/ServerLMS/multithreadserver/multithreadserver.cpp b/Server/multithreadserver/multithreadserver.cpp similarity index 100% rename from ServerLMS/multithreadserver/multithreadserver.cpp rename to Server/multithreadserver/multithreadserver.cpp diff --git a/ServerLMS/multithreadserver/multithreadserver.h b/Server/multithreadserver/multithreadserver.h similarity index 100% rename from ServerLMS/multithreadserver/multithreadserver.h rename to Server/multithreadserver/multithreadserver.h diff --git a/ServerLMS/providerdblms/providerdblms.cpp b/Server/providerdblms/providerdblms.cpp similarity index 100% rename from ServerLMS/providerdblms/providerdblms.cpp rename to Server/providerdblms/providerdblms.cpp diff --git a/ServerLMS/providerdblms/providerdblms.h b/Server/providerdblms/providerdblms.h similarity index 100% rename from ServerLMS/providerdblms/providerdblms.h rename to Server/providerdblms/providerdblms.h diff --git a/ServerLMS/resources/blankXML/ListGroups.xml b/Server/resources/blankXML/ListGroups.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListGroups.xml rename to Server/resources/blankXML/ListGroups.xml diff --git a/ServerLMS/resources/blankXML/ListInstructors.xml b/Server/resources/blankXML/ListInstructors.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListInstructors.xml rename to Server/resources/blankXML/ListInstructors.xml diff --git a/ServerLMS/resources/blankXML/ListSubProc.xml b/Server/resources/blankXML/ListSubProc.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListSubProc.xml rename to Server/resources/blankXML/ListSubProc.xml diff --git a/ServerLMS/resources/blankXML/ListTasksAMM.xml b/Server/resources/blankXML/ListTasksAMM.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListTasksAMM.xml rename to Server/resources/blankXML/ListTasksAMM.xml diff --git a/ServerLMS/resources/blankXML/ListTasksFIM.xml b/Server/resources/blankXML/ListTasksFIM.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListTasksFIM.xml rename to Server/resources/blankXML/ListTasksFIM.xml diff --git a/ServerLMS/resources/blankXML/ListTrainees.xml b/Server/resources/blankXML/ListTrainees.xml similarity index 100% rename from ServerLMS/resources/blankXML/ListTrainees.xml rename to Server/resources/blankXML/ListTrainees.xml diff --git a/ServerLMS/resources/icons/checkDB.png b/Server/resources/icons/checkDB.png similarity index 100% rename from ServerLMS/resources/icons/checkDB.png rename to Server/resources/icons/checkDB.png diff --git a/ServerLMS/resources/icons/circleGray.png b/Server/resources/icons/circleGray.png similarity index 100% rename from ServerLMS/resources/icons/circleGray.png rename to Server/resources/icons/circleGray.png diff --git a/ServerLMS/resources/icons/circleGreen.png b/Server/resources/icons/circleGreen.png similarity index 100% rename from ServerLMS/resources/icons/circleGreen.png rename to Server/resources/icons/circleGreen.png diff --git a/ServerLMS/resources/icons/circleRed.png b/Server/resources/icons/circleRed.png similarity index 100% rename from ServerLMS/resources/icons/circleRed.png rename to Server/resources/icons/circleRed.png diff --git a/ServerLMS/resources/icons/editorDB.png b/Server/resources/icons/editorDB.png similarity index 100% rename from ServerLMS/resources/icons/editorDB.png rename to Server/resources/icons/editorDB.png diff --git a/ServerLMS/resources/icons/exchange.png b/Server/resources/icons/exchange.png similarity index 100% rename from ServerLMS/resources/icons/exchange.png rename to Server/resources/icons/exchange.png diff --git a/ServerLMS/resources/icons/lock.png b/Server/resources/icons/lock.png similarity index 100% rename from ServerLMS/resources/icons/lock.png rename to Server/resources/icons/lock.png diff --git a/ServerLMS/resources/icons/open.png b/Server/resources/icons/open.png similarity index 100% rename from ServerLMS/resources/icons/open.png rename to Server/resources/icons/open.png diff --git a/ServerLMS/resources/icons/procedure.png b/Server/resources/icons/procedure.png similarity index 100% rename from ServerLMS/resources/icons/procedure.png rename to Server/resources/icons/procedure.png diff --git a/ServerLMS/resources/icons/rocket.png b/Server/resources/icons/rocket.png similarity index 100% rename from ServerLMS/resources/icons/rocket.png rename to Server/resources/icons/rocket.png diff --git a/ServerLMS/resources/icons/settings.png b/Server/resources/icons/settings.png similarity index 100% rename from ServerLMS/resources/icons/settings.png rename to Server/resources/icons/settings.png diff --git a/ServerLMS/resources/icons/stop.png b/Server/resources/icons/stop.png similarity index 100% rename from ServerLMS/resources/icons/stop.png rename to Server/resources/icons/stop.png diff --git a/ServerLMS/resources/icons/switchOff.png b/Server/resources/icons/switchOff.png similarity index 100% rename from ServerLMS/resources/icons/switchOff.png rename to Server/resources/icons/switchOff.png diff --git a/ServerLMS/resources/icons/switchOn.png b/Server/resources/icons/switchOn.png similarity index 100% rename from ServerLMS/resources/icons/switchOn.png rename to Server/resources/icons/switchOn.png diff --git a/ServerLMS/resources/icons/unlock.png b/Server/resources/icons/unlock.png similarity index 100% rename from ServerLMS/resources/icons/unlock.png rename to Server/resources/icons/unlock.png diff --git a/ServerLMS/serverlmswidget.cpp b/Server/serverlmswidget.cpp similarity index 100% rename from ServerLMS/serverlmswidget.cpp rename to Server/serverlmswidget.cpp diff --git a/ServerLMS/serverlmswidget.h b/Server/serverlmswidget.h similarity index 100% rename from ServerLMS/serverlmswidget.h rename to Server/serverlmswidget.h diff --git a/ServerLMS/serverlmswidget.ui b/Server/serverlmswidget.ui similarity index 100% rename from ServerLMS/serverlmswidget.ui rename to Server/serverlmswidget.ui diff --git a/ServerLMS/settings/dialogcheckdb.cpp b/Server/settings/dialogcheckdb.cpp similarity index 100% rename from ServerLMS/settings/dialogcheckdb.cpp rename to Server/settings/dialogcheckdb.cpp diff --git a/ServerLMS/settings/dialogcheckdb.h b/Server/settings/dialogcheckdb.h similarity index 100% rename from ServerLMS/settings/dialogcheckdb.h rename to Server/settings/dialogcheckdb.h diff --git a/ServerLMS/settings/dialogcheckdb.ui b/Server/settings/dialogcheckdb.ui similarity index 100% rename from ServerLMS/settings/dialogcheckdb.ui rename to Server/settings/dialogcheckdb.ui diff --git a/ServerLMS/settings/dialogsettingstray.cpp b/Server/settings/dialogsettingstray.cpp similarity index 100% rename from ServerLMS/settings/dialogsettingstray.cpp rename to Server/settings/dialogsettingstray.cpp diff --git a/ServerLMS/settings/dialogsettingstray.h b/Server/settings/dialogsettingstray.h similarity index 100% rename from ServerLMS/settings/dialogsettingstray.h rename to Server/settings/dialogsettingstray.h diff --git a/ServerLMS/settings/dialogsettingstray.ui b/Server/settings/dialogsettingstray.ui similarity index 100% rename from ServerLMS/settings/dialogsettingstray.ui rename to Server/settings/dialogsettingstray.ui diff --git a/ServerLMS/translations/ServerLMS_ru_RU.qm b/Server/translations/ServerLMS_ru_RU.qm similarity index 100% rename from ServerLMS/translations/ServerLMS_ru_RU.qm rename to Server/translations/ServerLMS_ru_RU.qm diff --git a/ServerLMS/translations/ServerLMS_ru_RU.ts b/Server/translations/ServerLMS_ru_RU.ts similarity index 100% rename from ServerLMS/translations/ServerLMS_ru_RU.ts rename to Server/translations/ServerLMS_ru_RU.ts diff --git a/ServerLMS/CMakeLists.txt b/ServerLMS/CMakeLists.txt deleted file mode 100644 index cb76b13..0000000 --- a/ServerLMS/CMakeLists.txt +++ /dev/null @@ -1,112 +0,0 @@ -project(ServerLMS LANGUAGES CXX) - -common_info_for_project(ServerLMS) - -add_library(ServerLMS SHARED - ServerLMS_global.h - serverlmswidget.cpp - serverlmswidget.h - serverlmswidget.ui - metatypes.cpp - metatypes.h - settings/dialogsettingstray.cpp - settings/dialogsettingstray.h - settings/dialogsettingstray.ui - settings/dialogcheckdb.cpp - settings/dialogcheckdb.h - settings/dialogcheckdb.ui - clienthandler/clienthandler.cpp - clienthandler/clienthandler.h - multithreadserver/multithreadserver.cpp - multithreadserver/multithreadserver.h - Data/typesDataServerClient.h - Data/Client.h - Data/PacketType.h - Data/StreamingVersionData.h - Data/usertype.h - Systems/assetsmanager.cpp - Systems/assetsmanager.h - Systems/recognizesystem.cpp - Systems/recognizesystem.h - Systems/updatecontroller.cpp - Systems/updatecontroller.h - Systems/commonclienthandler.cpp - Systems/commonclienthandler.h - Systems/logger.cpp - Systems/logger.h - Systems/Parsers/dataparser.cpp - Systems/Parsers/dataparser.h - Systems/Parsers/clientanswerparser.cpp - Systems/Parsers/clientanswerparser.h - Systems/Parsers/dbanswerparser.cpp - Systems/Parsers/dbanswerparser.h - Systems/Parsers/processparser.cpp - Systems/Parsers/processparser.h - Systems/Parsers/docsanswerparser.cpp - Systems/Parsers/docsanswerparser.h - Systems/processingsystem.cpp - Systems/processingsystem.h - Systems/sendsystem.cpp - Systems/sendsystem.h - Systems/tools.cpp - Systems/tools.h - Systems/chatsystem.cpp - Systems/chatsystem.h - Systems/fasthashcalculator.cpp - Systems/fasthashcalculator.h - Systems/docsupdater.cpp - Systems/docsupdater.h - providerdblms/providerdblms.cpp - providerdblms/providerdblms.h - ServerLMS.qrc -) - -target_link_libraries(ServerLMS PRIVATE Qt5::Widgets) -target_link_libraries(ServerLMS PRIVATE Qt5::Network) -target_link_libraries(ServerLMS PRIVATE Qt5::Concurrent) -target_link_libraries(ServerLMS PRIVATE Qt5::Sql) -target_link_libraries(ServerLMS PRIVATE Qt5::Xml) - -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/clienthandler) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/multithreadserver) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/providerdblms) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/settings) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Data) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Systems) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Systems/Parsers) - -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) -if(PROJECT_TYPE_DEBUG) - target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) -else() - target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) -endif() -target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll) - -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/authorization) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) -target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox) -if(PROJECT_TYPE_DEBUG) - target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees) -else() - target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees) -endif() -target_link_libraries(ServerLMS PRIVATE libInstructorsAndTrainees.dll) - -target_compile_definitions(ServerLMS PRIVATE SERVERLMS_LIBRARY) - -if(PROJECT_TYPE_DEBUG) - add_custom_command(TARGET ServerLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Debug64/ServerLMS/libServerLMS.dll - ${REPO_PATH}/BUILDS/Debug64/TrayServerLMS) -else() - add_custom_command(TARGET ServerLMS - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${REPO_PATH}/BUILDS/Release64/ServerLMS/libServerLMS.dll - ${REPO_PATH}/BUILDS/Release64/TrayServerLMS) -endif() diff --git a/TrayServerLMS/CMakeLists.txt b/TrayServerLMS/CMakeLists.txt deleted file mode 100644 index 53d3865..0000000 --- a/TrayServerLMS/CMakeLists.txt +++ /dev/null @@ -1,52 +0,0 @@ -project(TrayServerLMS LANGUAGES CXX) - -common_info_for_project(TrayServerLMS) - -# Подключаем RC-файл (только для Windows) -if(WIN32) - # Предполагая, что файл app.rc расположен в корневом каталоге проекта - set(RC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/app.rc) -endif() - -add_executable(TrayServerLMS WIN32 -main.cpp -mainwindow.cpp -mainwindow.h -mainwindow.ui -TrayServerLMS.qrc -) - -# Подключаем RC-файл к цели -if(RC_FILE) - target_sources(${PROJECT_NAME} PRIVATE ${RC_FILE}) -endif() - -target_link_libraries(TrayServerLMS PRIVATE Qt5::Widgets) -target_link_libraries(TrayServerLMS PRIVATE Qt5::Network) -target_link_libraries(TrayServerLMS PRIVATE Qt5::Sql) -target_link_libraries(TrayServerLMS PRIVATE Qt5::Xml) - -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) -if(PROJECT_TYPE_DEBUG) - target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) -else() - target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) -endif() -target_link_libraries(TrayServerLMS PRIVATE libDataBaseLMS.dll) - -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS/clienthandler) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS/multithreadserver) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS/providerdblms) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS/Systems) -if(PROJECT_TYPE_DEBUG) - target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/ServerLMS) -else() - target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/ServerLMS) -endif() -target_link_libraries(TrayServerLMS PRIVATE libServerLMS.dll) - -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) -target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/specialmessagebox)