-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
CMakeLists.txt
48 lines (41 loc) · 1.64 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#=============================================================================
# MuseScore
# Music Composition & Notation
#
# Copyright (C) 2019 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 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.
#=============================================================================
set(MODULE telemetry)
set(LIBRARY_TYPE STATIC)
message(STATUS "Configuring " ${MODULE})
include_directories(
${PROJECT_SOURCE_DIR}/thirdparty
${PROJECT_SOURCE_DIR}/mscore
${PROJECT_SOURCE_DIR}/framework/global
${PROJECT_BINARY_DIR}
)
file(GLOB_RECURSE telemetry_SOURCES RELATIVE ${CMAKE_CURRENT_LIST_DIR} *.cpp)
file(GLOB_RECURSE telemetry_HEADERS RELATIVE ${CMAKE_CURRENT_LIST_DIR} *.h)
qt5_add_resources(RCC_SOURCES telemetry_resources.qrc)
add_library(${MODULE} ${LIBRARY_TYPE}
${telemetry_SOURCES}
${telemetry_HEADERS}
${RCC_SOURCES}
)
target_link_libraries(${MODULE} global google_analytics)
if (MSVC)
set_target_properties (${MODULE} PROPERTIES
COMPILE_FLAGS "/wd4127 /wd26439 /wd5999" # ToDo for Qt 5.15: "... /wd26444 /wd26451 /wd26495 /wd26498 /wd26812" ??
)
endif (MSVC)