Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mtests under Windows MSVC #6028

Merged
merged 1 commit into from
May 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mtest/mscore/palette/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ set(TARGET tst_palette)
set(MTEST_LINK_MSCOREAPP TRUE)

include(${PROJECT_SOURCE_DIR}/mtest/cmake.inc)

if (MSVC)
install(DIRECTORY
${CMAKE_INSTALL_PREFIX}/workspaces
USE_SOURCE_PERMISSIONS
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)
endif (MSVC)
8 changes: 8 additions & 0 deletions mtest/testscript/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ include(${PROJECT_SOURCE_DIR}/mtest/cmake.inc)

add_dependencies(tst_runscripts mscore)
add_definitions(-DMSCORE_EXECUTABLE_PATH="$<TARGET_FILE:mscore>")

if (MSVC)
install(DIRECTORY
${CMAKE_INSTALL_PREFIX}/workspaces
USE_SOURCE_PERMISSIONS
DESTINATION $<TARGET_FILE_DIR:mscore>/..
)
endif (MSVC)