Поправил 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

@@ -113,7 +113,7 @@ target_compile_definitions(InstructorsAndTrainees PRIVATE INSTRUCTORSANDTRAINEES
target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS)
if(PROJECT_TYPE_DEBUG)
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS)
elseif()
else()
target_link_directories(InstructorsAndTrainees PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS)
endif()
target_link_libraries(InstructorsAndTrainees PRIVATE libDataBaseLMS.dll)
@@ -124,7 +124,7 @@ if(PROJECT_TYPE_DEBUG)
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees/libInstructorsAndTrainees.dll
${REPO_PATH}/BUILDS/Debug64/GUIdataBaseLMS)
elseif()
else()
add_custom_command(TARGET InstructorsAndTrainees
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different