2019-05-07 20:53:22 +02:00
|
|
|
# This file is part of the Flowee project
|
2021-06-20 22:44:44 +02:00
|
|
|
# Copyright (C) 2019 Tom Zander <tom@flowee.org>
|
2019-05-07 20:53:22 +02:00
|
|
|
#
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
project (apputils-library)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
2025-11-05 19:19:43 +01:00
|
|
|
add_definitions(-DLOG_DEFAULT_SECTION=1020)
|
|
|
|
|
|
2019-06-02 20:20:04 +02:00
|
|
|
include_directories(${LIBAPPUTILS_INCLUDES} ${CMAKE_BINARY_DIR}/include)
|
2019-05-07 20:53:22 +02:00
|
|
|
|
|
|
|
|
add_library(flowee_apputils STATIC
|
|
|
|
|
FloweeServiceApplication.cpp
|
2019-09-23 11:03:36 +02:00
|
|
|
Blockchain.cpp
|
2021-10-13 16:44:13 +02:00
|
|
|
Mnemonic.cpp
|
2025-11-05 13:01:13 +01:00
|
|
|
SimpleHttpClient.cpp
|
2019-05-07 20:53:22 +02:00
|
|
|
)
|
2019-11-04 14:20:50 +01:00
|
|
|
# allow usage in dlls
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
2019-05-07 20:53:22 +02:00
|
|
|
|
2025-11-05 13:01:13 +01:00
|
|
|
set (appUtilsUsingLibs
|
|
|
|
|
Qt6::Core
|
|
|
|
|
)
|
|
|
|
|
# Qt6 network is optional
|
|
|
|
|
if (${Qt6Network_FOUND})
|
|
|
|
|
list (APPEND appUtilsUsingLibs Qt6::Network)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
target_link_libraries(flowee_apputils ${appUtilsUsingLibs} flowee_networkmanager)
|
2019-06-02 20:20:04 +02:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libflowee_apputils.a DESTINATION lib)
|
|
|
|
|
install(FILES
|
2019-11-11 19:32:33 +01:00
|
|
|
Blockchain.h
|
2019-06-02 20:20:04 +02:00
|
|
|
FloweeServiceApplication.h
|
2021-10-13 16:44:13 +02:00
|
|
|
Mnemonic.h
|
2025-11-05 13:01:13 +01:00
|
|
|
SimpleHttpClient.h
|
2024-01-22 19:55:18 +01:00
|
|
|
DESTINATION include/flowee/apputils)
|