Added a telemetry module

This commit is contained in:
pereverzev_v 2019-12-06 12:03:09 +02:00
parent 6f28a2b4a6
commit b258e99056

46
telemetry/CMakeLists.txt Normal file
View file

@ -0,0 +1,46 @@
#=============================================================================
# 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.
#=============================================================================
get_filename_component(DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
message("Configuring " ${DIR_NAME})
find_package(Qt5 COMPONENTS Core Gui REQUIRED CONFIG)
add_definitions(
${Qt5Core_DEFINITIONS}
${Qt5Gui_DEFINITIONS}
)
include_directories(
${Qt5Core_INCLUDE_DIRS}
${Qt5Gui_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/thirdparty
${PROJECT_SOURCE_DIR}/mscore
${PROJECT_SOURCE_DIR}/global
)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(LIBRARY_TYPE STATIC)
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(telemetry ${LIBRARY_TYPE} ${telemetry_SOURCES} ${telemetry_HEADERS} ${RCC_SOURCES})
target_link_libraries(telemetry global google_analytics)