# This file is part of the Flowee project
# Copyright (C) 2025 Tom Zander <tom@flowee.org>
#
# 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/>.

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

add_executable(processor
    Processor.h Processor.cpp
    Utils.h Utils.cpp
    DownloadJob.h DownloadJob.cpp
)
target_compile_definitions(processor PRIVATE LOG_DEFAULT_SECTION=100)
target_link_libraries(processor
    flowee_utils
    Qt6::Core
    Qt6::Network
    Boost::filesystem
)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/processor DESTINATION ${CMAKE_BINARY_DIR}/bin)


add_executable(fetcher
    Fetcher.h Fetcher.cpp
    Utils.h Utils.cpp
)
target_compile_definitions(fetcher PRIVATE LOG_DEFAULT_SECTION=1200)
target_link_libraries(fetcher
    flowee_apputils
    flowee_networkmanager
    flowee_utils
    Qt6::Core
    Qt6::Network
    Boost::filesystem
    Boost::thread
)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/fetcher DESTINATION ${CMAKE_BINARY_DIR}/bin)

add_executable(strengthen-trust
    StrengthenTrust.h StrengthenTrust.cpp
    Utils.h Utils.cpp
)
target_compile_definitions(strengthen-trust PRIVATE LOG_DEFAULT_SECTION=1300)
target_link_libraries(strengthen-trust
    flowee_apputils
    flowee_networkmanager
    flowee_utils
    Qt6::Core
    Qt6::Network
    Boost::filesystem
    Boost::thread
)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/strengthen-trust DESTINATION ${CMAKE_BINARY_DIR}/bin)

