2019-03-30 14:26:00 +01: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-03-30 14:26:00 +01: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 (indexing-server)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
2019-05-07 20:53:22 +02:00
|
|
|
# set the default log section (for logDebug() with no args) to the Indexer value
|
2019-03-30 14:26:00 +01:00
|
|
|
add_definitions(-DLOG_DEFAULT_SECTION=8000)
|
|
|
|
|
|
2022-08-20 18:24:55 +02:00
|
|
|
find_package(Qt6Sql)
|
2019-03-31 15:11:03 +02:00
|
|
|
|
2019-06-02 20:20:04 +02:00
|
|
|
include_directories(${LIBAPPUTILS_INCLUDES} ${LIBUTXO_INCLUDES} ${CMAKE_BINARY_DIR}/include)
|
2019-03-30 14:26:00 +01:00
|
|
|
|
|
|
|
|
set (IDX_LIBS
|
|
|
|
|
flowee_utxo
|
|
|
|
|
flowee_networkmanager
|
2019-08-24 22:18:02 +02:00
|
|
|
flowee_apputils
|
2019-03-30 14:26:00 +01:00
|
|
|
flowee_utils
|
|
|
|
|
|
|
|
|
|
${OPENSSL_LIBRARIES}
|
2025-03-07 15:36:36 +01:00
|
|
|
Boost::filesystem
|
|
|
|
|
Boost::iostreams
|
|
|
|
|
Boost::program_options
|
|
|
|
|
Boost::thread
|
2019-03-30 14:26:00 +01:00
|
|
|
)
|
|
|
|
|
|
2022-08-20 18:24:55 +02:00
|
|
|
if (${Qt6Sql_FOUND})
|
2019-03-31 15:11:03 +02:00
|
|
|
add_executable(indexer
|
|
|
|
|
main.cpp
|
|
|
|
|
AddressIndexer.cpp
|
|
|
|
|
HashStorage.cpp
|
|
|
|
|
Indexer.cpp
|
2019-06-11 17:28:16 +02:00
|
|
|
SpentOuputIndexer.cpp
|
2019-03-31 15:11:03 +02:00
|
|
|
TxIndexer.cpp
|
|
|
|
|
)
|
2019-03-30 14:26:00 +01:00
|
|
|
|
2022-08-20 18:24:55 +02:00
|
|
|
target_link_libraries(indexer ${IDX_LIBS} Qt6::Sql)
|
2019-03-31 15:11:03 +02:00
|
|
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/indexer DESTINATION bin)
|
2019-05-13 11:40:33 +02:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/support/indexer.conf
|
|
|
|
|
CONFIGURATIONS Release RelWithDebInfo
|
|
|
|
|
DESTINATION etc/flowee)
|
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/support/indexer.service
|
|
|
|
|
CONFIGURATIONS Release RelWithDebInfo
|
|
|
|
|
DESTINATION systemd/system/)
|
2019-03-31 15:11:03 +02:00
|
|
|
endif ()
|
2019-04-10 14:30:30 +02:00
|
|
|
|
|
|
|
|
add_executable(indexer-cli cli.cpp
|
|
|
|
|
IndexerClient.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(indexer-cli ${IDX_LIBS})
|
|
|
|
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/indexer-cli DESTINATION bin)
|