mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-29 20:05:38 +03:00
Скорректировал все файлы CMakeLists.txt для Release64
This commit is contained in:
@@ -122,16 +122,25 @@ target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../QT/BUILDS/LMS/DB_LMS/Release64)
|
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll)
|
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll)
|
||||||
|
|
||||||
|
|
||||||
|
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/DB_IaT/Debug64/libInstructorsAndTrainees.dll
|
${REPO_PATH}/BUILDS/DB_IaT/Debug64/libInstructorsAndTrainees.dll
|
||||||
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
||||||
|
elseif()
|
||||||
|
add_custom_command(TARGET InstructorsAndTrainees
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${REPO_PATH}/BUILDS/DB_IaT/Release64/libInstructorsAndTrainees.dll
|
||||||
|
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Release64)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
#Только для TSMP!
|
||||||
#install(TARGETS InstructorsAndTrainees DESTINATION ${VEYON_LIB_DIR})
|
#install(TARGETS InstructorsAndTrainees DESTINATION ${VEYON_LIB_DIR})
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ set(CMAKE_AUTORCC ON)
|
|||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
set(PROJECT_TYPE_DEBUG TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(PROJECT_TYPE_DEBUG)
|
||||||
|
add_definitions(-DPROJECT_TYPE_DEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
||||||
find_package(Qt5 COMPONENTS Sql REQUIRED)
|
find_package(Qt5 COMPONENTS Sql REQUIRED)
|
||||||
find_package(Qt5 COMPONENTS LinguistTools REQUIRED)
|
find_package(Qt5 COMPONENTS LinguistTools REQUIRED)
|
||||||
@@ -46,6 +54,9 @@ target_link_libraries(DataBaseLMS PRIVATE Qt5::Sql)
|
|||||||
target_compile_definitions(DataBaseLMS PRIVATE DATABASELMS_LIBRARY)
|
target_compile_definitions(DataBaseLMS PRIVATE DATABASELMS_LIBRARY)
|
||||||
|
|
||||||
message("${REPO_PATH}")
|
message("${REPO_PATH}")
|
||||||
|
|
||||||
|
if(PROJECT_TYPE_DEBUG)
|
||||||
|
|
||||||
add_custom_command(TARGET DataBaseLMS
|
add_custom_command(TARGET DataBaseLMS
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
@@ -57,3 +68,20 @@ add_custom_command(TARGET DataBaseLMS
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
||||||
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
||||||
|
elseif()
|
||||||
|
|
||||||
|
add_custom_command(TARGET DataBaseLMS
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${REPO_PATH}/BUILDS/DB_LMS/Release64/libDataBaseLMS.dll
|
||||||
|
${REPO_PATH}/BUILDS/TestServerLMS/Release64)
|
||||||
|
|
||||||
|
add_custom_command(TARGET DataBaseLMS
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${REPO_PATH}/BUILDS/DB_LMS/Release64/libDataBaseLMS.dll
|
||||||
|
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Release64)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_IaT/Debug64)
|
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_IaT/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../QT/BUILDS/LMS/DB_IaT/Release64)
|
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_IaT/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(GUIdataBaseLMS PRIVATE libInstructorsAndTrainees.dll)
|
target_link_libraries(GUIdataBaseLMS PRIVATE libInstructorsAndTrainees.dll)
|
||||||
|
|
||||||
@@ -60,6 +60,6 @@ target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../QT/BUILDS/LMS/DB_LMS/Release64)
|
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(GUIdataBaseLMS PRIVATE libDataBaseLMS.dll)
|
target_link_libraries(GUIdataBaseLMS PRIVATE libDataBaseLMS.dll)
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../DB
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../BUILDS/LMS/DB_LMS/Release64)
|
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll)
|
target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll)
|
||||||
|
|
||||||
@@ -81,8 +81,16 @@ target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll)
|
|||||||
target_compile_definitions(ServerLMS PRIVATE SERVERLMS_LIBRARY)
|
target_compile_definitions(ServerLMS PRIVATE SERVERLMS_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
|
if(PROJECT_TYPE_DEBUG)
|
||||||
add_custom_command(TARGET ServerLMS
|
add_custom_command(TARGET ServerLMS
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
${REPO_PATH}/BUILDS/ServerLMS/Debug64/libServerLMS.dll
|
${REPO_PATH}/BUILDS/ServerLMS/Debug64/libServerLMS.dll
|
||||||
${REPO_PATH}/BUILDS/TestServerLMS/Debug64)
|
${REPO_PATH}/BUILDS/TestServerLMS/Debug64)
|
||||||
|
elseif()
|
||||||
|
add_custom_command(TARGET ServerLMS
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
|
${REPO_PATH}/BUILDS/ServerLMS/Release64/libServerLMS.dll
|
||||||
|
${REPO_PATH}/BUILDS/TestServerLMS/Release64)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ target_include_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../.
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../QT/BUILDS/LMS/DB_LMS/Release64)
|
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(TestServerLMS PRIVATE libDataBaseLMS.dll)
|
target_link_libraries(TestServerLMS PRIVATE libDataBaseLMS.dll)
|
||||||
|
|
||||||
@@ -54,6 +54,6 @@ target_include_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../.
|
|||||||
if(PROJECT_TYPE_DEBUG)
|
if(PROJECT_TYPE_DEBUG)
|
||||||
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/ServerLMS/Debug64)
|
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/ServerLMS/Debug64)
|
||||||
elseif()
|
elseif()
|
||||||
target_link_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../QT/BUILDS/LMS/ServerLMS/Release64)
|
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/ServerLMS/Release64)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(TestServerLMS PRIVATE libServerLMS.dll)
|
target_link_libraries(TestServerLMS PRIVATE libServerLMS.dll)
|
||||||
|
|||||||
Reference in New Issue
Block a user