57 lines
1.5 KiB
CMake
57 lines
1.5 KiB
CMake
#=============================================================================
|
|
# MusE
|
|
# Linux Music Editor
|
|
# $Id:$
|
|
#
|
|
# Copyright (C) 2002-2006 by Werner Schweer and others
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#=============================================================================
|
|
|
|
include (${PROJECT_SOURCE_DIR}/build/gch.cmake)
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}
|
|
${PROJECT_BINARY_DIR}
|
|
)
|
|
|
|
QT4_WRAP_CPP (mocs
|
|
omrview.h
|
|
)
|
|
|
|
if (OCR)
|
|
set (OCR_SRC ocr.cpp)
|
|
endif (OCR)
|
|
|
|
add_library (
|
|
omr STATIC
|
|
${PROJECT_BINARY_DIR}/all.h
|
|
${PCH}
|
|
${mocs}
|
|
omrview.cpp pdf.cpp omrpage.cpp
|
|
skew.cpp utils.cpp
|
|
omr.cpp pattern.cpp importpdf.cpp
|
|
${OCR_SRC}
|
|
)
|
|
|
|
set_target_properties (
|
|
omr
|
|
PROPERTIES
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
|
|
)
|
|
|
|
xcode_pch(omr all)
|
|
|
|
ADD_DEPENDENCIES(omr mops1)
|
|
ADD_DEPENDENCIES(omr mops2)
|
|
|