2012-05-26 14:49:10 +02:00
|
|
|
#=============================================================================
|
|
|
|
# MuseScore
|
|
|
|
# Music Composition & Notation
|
|
|
|
# $Id:$
|
|
|
|
#
|
|
|
|
# Copyright (C) 2011 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(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PROJECT_BINARY_DIR}
|
|
|
|
${PROJECT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2012-06-04 10:05:18 +02:00
|
|
|
if (OMR)
|
|
|
|
set(OMR_SRC ${PROJECT_SOURCE_DIR}/omr/importpdf.cpp)
|
|
|
|
endif (OMR)
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
add_library(
|
|
|
|
testutils STATIC
|
|
|
|
testutils.cpp
|
|
|
|
mcursor.cpp
|
|
|
|
${PROJECT_SOURCE_DIR}/mscore/importmidi.cpp
|
2012-06-04 10:05:18 +02:00
|
|
|
${OMR_SRC}
|
2012-05-26 14:49:10 +02:00
|
|
|
omr
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
mtest
|
|
|
|
mtest.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(
|
|
|
|
mtest
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties (
|
|
|
|
testutils
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "-include all.h -I${QT_HEADERS_DIR} -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(report
|
|
|
|
COMMAND ant -f ${PROJECT_SOURCE_DIR}/mtest/build.xml -Droot.dir=${PROJECT_BINARY_DIR}/mtest report
|
|
|
|
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/mtest"
|
|
|
|
)
|
|
|
|
add_custom_target(reporthtml
|
|
|
|
COMMAND ant -f ${PROJECT_SOURCE_DIR}/mtest/build.xml -Droot.dir=${PROJECT_BINARY_DIR}/mtest reporthtml
|
|
|
|
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/mtest"
|
|
|
|
)
|
|
|
|
|
2012-06-04 10:05:18 +02:00
|
|
|
subdirs(libmscore)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
2012-06-04 10:05:18 +02:00
|
|
|
if (OMR)
|
|
|
|
subdirs(omr)
|
|
|
|
endif (OMR)
|
2012-05-26 14:49:10 +02:00
|
|
|
|