rename0
@@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
message("Using CMake ${CMAKE_VERSION}\n")
|
message("Using CMake ${CMAKE_VERSION}\n")
|
||||||
|
|
||||||
project(LMS LANGUAGES CXX)
|
project(MPS LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
@@ -21,7 +21,7 @@ endif()
|
|||||||
|
|
||||||
include(cmake/CommonInfoForProject.cmake)
|
include(cmake/CommonInfoForProject.cmake)
|
||||||
|
|
||||||
common_info_for_project(LMS)
|
common_info_for_project(MPS)
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
||||||
find_package(Qt5 COMPONENTS Network 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 Xml REQUIRED)
|
||||||
find_package(Qt5 COMPONENTS Concurrent REQUIRED)
|
find_package(Qt5 COMPONENTS Concurrent REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(DataBaseLMS)
|
add_subdirectory(DataBaseInterface)
|
||||||
add_subdirectory(InstructorsAndTrainees)
|
add_subdirectory(InstructorsAndTrainees)
|
||||||
add_subdirectory(GUIdataBaseLMS)
|
add_subdirectory(ProgramAWSinstructorMPS)
|
||||||
add_subdirectory(ServerLMS)
|
add_subdirectory(Server)
|
||||||
add_subdirectory(TrayServerLMS)
|
add_subdirectory(ProgramServerMPS)
|
||||||
|
|
||||||
add_dependencies(InstructorsAndTrainees DataBaseLMS)
|
add_dependencies(InstructorsAndTrainees DataBaseInterface)
|
||||||
add_dependencies(GUIdataBaseLMS InstructorsAndTrainees)
|
add_dependencies(ProgramAWSinstructorMPS InstructorsAndTrainees)
|
||||||
add_dependencies(ServerLMS DataBaseLMS)
|
add_dependencies(Server DataBaseInterface)
|
||||||
add_dependencies(ServerLMS InstructorsAndTrainees)
|
add_dependencies(Server InstructorsAndTrainees)
|
||||||
add_dependencies(TrayServerLMS ServerLMS)
|
add_dependencies(ProgramServerMPS Server)
|
||||||
|
|||||||
77
DataBaseInterface/CMakeLists.txt
Normal file
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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)
|
|
||||||
@@ -163,37 +163,37 @@ target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_
|
|||||||
|
|
||||||
target_compile_definitions(InstructorsAndTrainees PRIVATE INSTRUCTORSANDTRAINEES_LIBRARY)
|
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)
|
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()
|
else()
|
||||||
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS)
|
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseInterface)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll)
|
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseInterface.dll)
|
||||||
|
|
||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
add_custom_command(TARGET InstructorsAndTrainees
|
add_custom_command(TARGET InstructorsAndTrainees
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
||||||
${REPO_PATH}/BUILDS/Debug64/GUIdataBaseLMS)
|
${REPO_PATH}/BUILDS/Debug64/ProgramAWSinstructorMPS)
|
||||||
|
|
||||||
add_custom_command(TARGET InstructorsAndTrainees
|
add_custom_command(TARGET InstructorsAndTrainees
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
||||||
${REPO_PATH}/BUILDS/Debug64/TrayServerLMS)
|
${REPO_PATH}/BUILDS/Debug64/ProgramServerMPS)
|
||||||
else()
|
else()
|
||||||
add_custom_command(TARGET InstructorsAndTrainees
|
add_custom_command(TARGET InstructorsAndTrainees
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
||||||
${REPO_PATH}/BUILDS/Release64/GUIdataBaseLMS)
|
${REPO_PATH}/BUILDS/Release64/ProgramAWSinstructorMPS)
|
||||||
add_custom_command(TARGET InstructorsAndTrainees
|
add_custom_command(TARGET InstructorsAndTrainees
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
${REPO_PATH}/BUILDS/Release64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
|
||||||
${REPO_PATH}/BUILDS/Release64/TrayServerLMS)
|
${REPO_PATH}/BUILDS/Release64/ProgramServerMPS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#Только для TSMP!
|
#Только для TSMP!
|
||||||
|
|||||||
55
ProgramAWSinstructorMPS/CMakeLists.txt
Normal file
@@ -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)
|
||||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
52
ProgramServerMPS/CMakeLists.txt
Normal file
@@ -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)
|
||||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
112
Server/CMakeLists.txt
Normal file
@@ -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()
|
||||||