MuseScore/mtest/cmake.inc

58 lines
1.4 KiB
PHP
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
#=============================================================================
QT4_ADD_RESOURCES(qrc_files ${PROJECT_SOURCE_DIR}/mtest/mtest.qrc)
add_executable(
${TARGET}
${ui_headers}
${qrc_files}
${mocs}
${TARGET}.cpp
)
target_link_libraries(
${TARGET}
${QT_QTTEST_LIBRARY}
testutils
libmscore
msynth
2012-06-04 10:05:18 +02:00
${QT_LIBRARIES}
2012-05-26 14:49:10 +02:00
)
2012-08-06 20:48:35 +02:00
if (NOT MINGW)
2012-12-10 09:15:50 +01:00
target_link_libraries(${TARGET}
z
dl
2012-08-06 20:48:35 +02:00
pthread
fontconfig
freetype)
endif (NOT MINGW)
2012-06-04 10:05:18 +02:00
if (OMR)
target_link_libraries(${TARGET} omr fitz openjpeg jbig2dec jpeg)
if (OCR)
target_link_libraries(${TARGET} tesseract_api)
2012-06-04 10:05:18 +02:00
endif (OCR)
endif (OMR)
2012-05-26 14:49:10 +02:00
set_target_properties (
${TARGET}
PROPERTIES
AUTOMOC true
COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
LINK_FLAGS "-g"
)
add_test(${TARGET} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} -xunitxml -o result.xml)