forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] returned USE_SYSTEM_FREETYPE option
- Loading branch information
1 parent
8a99a85
commit 9ab6b32
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# MuseScore-CLA-applies | ||
# | ||
# MuseScore | ||
# Music Composition & Notation | ||
# | ||
# Copyright (C) 2023 MuseScore BVBA 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 3 as | ||
# published by the Free Software Foundation. | ||
# | ||
# 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, see <https://www.gnu.org/licenses/>. | ||
|
||
if (MUE_COMPILE_USE_SYSTEM_FREETYPE) | ||
find_package(Freetype) | ||
if (FREETYPE_FOUND) | ||
message(STATUS "Found freetype: ${FREETYPE_VERSION_STRING}") | ||
else() | ||
message(WARNING "Set MUE_COMPILE_USE_SYSTEM_FREETYPE=ON, but system freetype not found, built-in will be used") | ||
endif() | ||
endif() | ||
|
||
if (NOT FREETYPE_FOUND) | ||
add_subdirectory(${THIRDPARTY_DIR}/freetype freetype) | ||
set(FREETYPE_LIBRARIES freetype) | ||
set(FREETYPE_INCLUDE_DIRS ${THIRDPARTY_DIR}/freetype/include) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters