mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +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)
|
||||
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||
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()
|
||||
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll)
|
||||
|
||||
|
||||
add_custom_command(TARGET InstructorsAndTrainees
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_IaT/Debug64/libInstructorsAndTrainees.dll
|
||||
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
||||
if(PROJECT_TYPE_DEBUG)
|
||||
add_custom_command(TARGET InstructorsAndTrainees
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_IaT/Debug64/libInstructorsAndTrainees.dll
|
||||
${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})
|
||||
|
||||
@@ -12,6 +12,14 @@ set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
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 Sql REQUIRED)
|
||||
find_package(Qt5 COMPONENTS LinguistTools REQUIRED)
|
||||
@@ -46,14 +54,34 @@ target_link_libraries(DataBaseLMS PRIVATE Qt5::Sql)
|
||||
target_compile_definitions(DataBaseLMS PRIVATE DATABASELMS_LIBRARY)
|
||||
|
||||
message("${REPO_PATH}")
|
||||
add_custom_command(TARGET DataBaseLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
||||
${REPO_PATH}/BUILDS/TestServerLMS/Debug64)
|
||||
|
||||
add_custom_command(TARGET DataBaseLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
||||
${REPO_PATH}/BUILDS/GUIdataBaseLMS/Debug64)
|
||||
if(PROJECT_TYPE_DEBUG)
|
||||
|
||||
add_custom_command(TARGET DataBaseLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
||||
${REPO_PATH}/BUILDS/TestServerLMS/Debug64)
|
||||
|
||||
add_custom_command(TARGET DataBaseLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/DB_LMS/Debug64/libDataBaseLMS.dll
|
||||
${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)
|
||||
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_IaT/Debug64)
|
||||
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()
|
||||
target_link_libraries(GUIdataBaseLMS PRIVATE libInstructorsAndTrainees.dll)
|
||||
|
||||
@@ -60,6 +60,6 @@ target_include_directories(GUIdataBaseLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../
|
||||
if(PROJECT_TYPE_DEBUG)
|
||||
target_link_directories(GUIdataBaseLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||
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()
|
||||
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)
|
||||
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||
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()
|
||||
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)
|
||||
|
||||
|
||||
add_custom_command(TARGET ServerLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/ServerLMS/Debug64/libServerLMS.dll
|
||||
${REPO_PATH}/BUILDS/TestServerLMS/Debug64)
|
||||
if(PROJECT_TYPE_DEBUG)
|
||||
add_custom_command(TARGET ServerLMS
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${REPO_PATH}/BUILDS/ServerLMS/Debug64/libServerLMS.dll
|
||||
${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)
|
||||
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/DB_LMS/Debug64)
|
||||
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()
|
||||
target_link_libraries(TestServerLMS PRIVATE libDataBaseLMS.dll)
|
||||
|
||||
@@ -54,6 +54,6 @@ target_include_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../.
|
||||
if(PROJECT_TYPE_DEBUG)
|
||||
target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/ServerLMS/Debug64)
|
||||
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()
|
||||
target_link_libraries(TestServerLMS PRIVATE libServerLMS.dll)
|
||||
|
||||
Reference in New Issue
Block a user