Поправил CMakeLists.txt для Release

This commit is contained in:
2025-04-16 12:52:08 +03:00
parent 4a969f7b80
commit f63b2d75c4
8 changed files with 435 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ target_link_libraries(ServerLMS PRIVATE Qt5::Xml)
target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS)
if(PROJECT_TYPE_DEBUG)
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS)
elseif()
else()
target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS)
endif()
target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll)
@@ -66,7 +66,7 @@ if(PROJECT_TYPE_DEBUG)
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${REPO_PATH}/BUILDS/Debug64/ServerLMS/libServerLMS.dll
${REPO_PATH}/BUILDS/Debug64/TestServerLMS)
elseif()
else()
add_custom_command(TARGET ServerLMS
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different