MuseScore/mtest/CMakeLists.txt

80 lines
1.9 KiB
CMake
Raw Normal View History

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-12-10 09:15:50 +01:00
QT4_WRAP_CPP (mtestMocs
${PROJECT_SOURCE_DIR}/mscore/qmlplugin.h
)
2012-05-26 14:49:10 +02:00
add_library(
testutils STATIC
2012-12-10 09:15:50 +01:00
${mtestMocs}
2012-05-26 14:49:10 +02:00
testutils.cpp
mcursor.cpp
2012-09-27 21:34:36 +02:00
${PROJECT_SOURCE_DIR}/mscore/exportxml.cpp
2012-05-26 14:49:10 +02:00
${PROJECT_SOURCE_DIR}/mscore/importmidi.cpp
2012-09-27 21:34:36 +02:00
${PROJECT_SOURCE_DIR}/mscore/importxml.cpp
${PROJECT_SOURCE_DIR}/mscore/musicxmlsupport.cpp
2012-12-10 09:15:50 +01:00
${PROJECT_SOURCE_DIR}/mscore/qmlplugin.cpp
${PROJECT_SOURCE_DIR}/mscore/shortcut.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
)
2012-09-27 21:34:36 +02:00
2012-05-26 14:49:10 +02:00
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"
)
2012-09-27 21:34:36 +02:00
2012-05-26 14:49:10 +02:00
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-09-27 21:34:36 +02:00
subdirs(
libmscore
musicxml
)
2012-05-26 14:49:10 +02:00
2012-06-04 10:05:18 +02:00
if (OMR)
subdirs(omr)
endif (OMR)
2012-12-10 09:15:50 +01:00