MuseScore/mtest/testscript/CMakeLists.txt
anatoly-os 18c4e8eea2 Merge pull request #6028 from AntonioBL/winmtests
fix mtests under Windows MSVC
2020-05-20 14:18:15 +02:00

26 lines
851 B
CMake

#=============================================================================
# MuseScore
# Music Composition & Notation
#
# Copyright (C) 2018 Werner Schweer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation and appearing in
# the file LICENSE.GPL
#=============================================================================
set(TARGET tst_runscripts)
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)