MuseScore/mtest/cmake.inc

61 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
2013-04-03 12:49:55 +02:00
synthesizer
2013-04-15 10:38:16 +02:00
midi
2014-05-07 20:38:42 +02:00
xmlstream
qzip
2013-08-09 18:37:41 +02:00
z
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)
2013-02-15 14:50:03 +01:00
target_link_libraries(${TARGET}
2012-12-10 09:15:50 +01:00
dl
2012-08-06 20:48:35 +02:00
pthread
freetype)
endif (NOT MINGW)
2012-06-04 10:05:18 +02:00
if (OMR)
2014-04-28 15:16:22 +02:00
target_link_libraries(${TARGET} omr fitz openjpeg jbig2dec jpeg fontconfig)
2012-06-04 10:05:18 +02:00
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
2013-02-15 14:50:03 +01:00
COMPILE_FLAGS "-include all.h -D QT_GUI_LIB -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
2012-05-26 14:49:10 +02:00
LINK_FLAGS "-g"
)
2013-02-15 14:50:03 +01:00
2012-05-26 14:49:10 +02:00
add_test(${TARGET} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} -xunitxml -o result.xml)