repobadge/CMakeLists.txt

45 lines
1.4 KiB
CMake

# This file is part of the BuildIt software distribution (https://gitcloud.federationhq.de/byterazor/buildit)
# Copyright (c) 2020 Dominik Meyer <dmeyer@federationhq.de>.
#
# 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, version 3.
#
# 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/>.
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
project (repobadge VERSION 0.1.0 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules )
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
include(doxygen)
build_docs(PROCESS_DOXYFILE DOXYFILE_PATH "docs/Doxyfile.in" )
include(compdb)
# provide all source files for the server
set(REPOBADGE_SOURCES
include/repoBadge.hpp
src/repoBadge.cpp
)
add_library(repobadge STATIC ${REPOBADGE_SOURCES})
target_include_directories(repobadge
PUBLIC
include
PRIVATE
src
)
add_executable(badge src/main.cpp)
target_link_libraries(badge repobadge)