Loading CMakeLists.txt +7 −1 Changes for CMakeLists.txt: 7 added lines, 1 removed line. Original line number Diff line number Diff line cmake_minimum_required(VERSION 3.18) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME}) message(STATUS "System: ${CMAKE_HOST_SYSTEM_NAME}") if( NOT ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -Wextra --warn-no-unused-parameter -Wstack-usage=4096 --std=c++20") endif() project(authdb) set(version 0.1) add_definitions( -D${CMAKE_SYSTEM_NAME} ) set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake" ) find_package(libconfplus REQUIRED) find_package(libcmdplus REQUIRED) Loading CMakeSettings.json 0 → 100644 +15 −0 Changes for CMakeSettings.json: 15 added lines, 0 removed lines. Original line number Diff line number Diff line { "configurations": [ { "name": "x64-Debug", "generator": "Ninja", "configurationType": "Debug", "inheritEnvironments": [ "msvc_x64_x64" ], "buildRoot": "${projectDir}\\out\\build\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}", "cmakeCommandArgs": "", "buildCommandArgs": "", "ctestCommandArgs": "" } ] } No newline at end of file cmake/Findjson-c.cmake 0 → 100644 +33 −0 Changes for cmake/Findjson-c.cmake: 33 added lines, 0 removed lines. Original line number Diff line number Diff line # @project The CERN Tape Archive (CTA) # @copyright Copyright © 2015-2022 CERN # @license This program is free software, distributed under the terms of the GNU General Public # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". You can # redistribute it and/or modify it under the terms of the GPL Version 3, 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. # # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization or # submit itself to any jurisdiction. # This module will set the following variables: # JSON-C_FOUND # JSON-C_INCLUDE_DIRS # JSON-C_LIBRARIES find_path(JSON-C_INCLUDE_DIRS json.h PATHS /usr/include/json-c NO_DEFAULT_PATH) find_library(JSON-C_LIBRARIES NAME json-c PATHS /usr/lib64 NO_DEFAULT_PATH) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(json-c DEFAULT_MSG JSON-C_INCLUDE_DIRS JSON-C_LIBRARIES) src/CMakeLists.txt +5 −9 Changes for src/CMakeLists.txt: 5 added lines, 9 removed lines. Original line number Diff line number Diff line set(DATAPATH "../data" CACHE PATH "Path to Template files ...") message(${DATAPATH}) add_compile_definitions(DATAPATH="${DATAPATH}") add_library(fback SHARED backends/file.cpp) list(APPEND authdbSrcs Loading @@ -19,10 +13,12 @@ list(APPEND authdbSrcs hash/sha512.cpp ) add_library( authobj OBJECT ${authdbSrcs} ${libuuid.so}) add_library( authobj OBJECT ${authdbSrcs}) target_link_libraries(authobj PRVIATE uuidp::uuidp) target_include_directories(authobj BEFORE PRIVATE ${UUIDP_INCLUDE_DIR} include_directories(authobj BEFORE PRIVATE "${LIBUUIDP_INCLUDE_DIR}" ) add_executable(authdb Loading src/api.cpp +0 −1 Changes for src/api.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <memory> #include <iostream> #include <uuid/uuid.h> #include <json-c/json.h> #include <json-c/json_types.h> Loading Loading
CMakeLists.txt +7 −1 Changes for CMakeLists.txt: 7 added lines, 1 removed line. Original line number Diff line number Diff line cmake_minimum_required(VERSION 3.18) add_definitions(-D${CMAKE_HOST_SYSTEM_NAME}) message(STATUS "System: ${CMAKE_HOST_SYSTEM_NAME}") if( NOT ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -Wextra --warn-no-unused-parameter -Wstack-usage=4096 --std=c++20") endif() project(authdb) set(version 0.1) add_definitions( -D${CMAKE_SYSTEM_NAME} ) set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake" ) find_package(libconfplus REQUIRED) find_package(libcmdplus REQUIRED) Loading
CMakeSettings.json 0 → 100644 +15 −0 Changes for CMakeSettings.json: 15 added lines, 0 removed lines. Original line number Diff line number Diff line { "configurations": [ { "name": "x64-Debug", "generator": "Ninja", "configurationType": "Debug", "inheritEnvironments": [ "msvc_x64_x64" ], "buildRoot": "${projectDir}\\out\\build\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}", "cmakeCommandArgs": "", "buildCommandArgs": "", "ctestCommandArgs": "" } ] } No newline at end of file
cmake/Findjson-c.cmake 0 → 100644 +33 −0 Changes for cmake/Findjson-c.cmake: 33 added lines, 0 removed lines. Original line number Diff line number Diff line # @project The CERN Tape Archive (CTA) # @copyright Copyright © 2015-2022 CERN # @license This program is free software, distributed under the terms of the GNU General Public # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". You can # redistribute it and/or modify it under the terms of the GPL Version 3, 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. # # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization or # submit itself to any jurisdiction. # This module will set the following variables: # JSON-C_FOUND # JSON-C_INCLUDE_DIRS # JSON-C_LIBRARIES find_path(JSON-C_INCLUDE_DIRS json.h PATHS /usr/include/json-c NO_DEFAULT_PATH) find_library(JSON-C_LIBRARIES NAME json-c PATHS /usr/lib64 NO_DEFAULT_PATH) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(json-c DEFAULT_MSG JSON-C_INCLUDE_DIRS JSON-C_LIBRARIES)
src/CMakeLists.txt +5 −9 Changes for src/CMakeLists.txt: 5 added lines, 9 removed lines. Original line number Diff line number Diff line set(DATAPATH "../data" CACHE PATH "Path to Template files ...") message(${DATAPATH}) add_compile_definitions(DATAPATH="${DATAPATH}") add_library(fback SHARED backends/file.cpp) list(APPEND authdbSrcs Loading @@ -19,10 +13,12 @@ list(APPEND authdbSrcs hash/sha512.cpp ) add_library( authobj OBJECT ${authdbSrcs} ${libuuid.so}) add_library( authobj OBJECT ${authdbSrcs}) target_link_libraries(authobj PRVIATE uuidp::uuidp) target_include_directories(authobj BEFORE PRIVATE ${UUIDP_INCLUDE_DIR} include_directories(authobj BEFORE PRIVATE "${LIBUUIDP_INCLUDE_DIR}" ) add_executable(authdb Loading
src/api.cpp +0 −1 Changes for src/api.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <memory> #include <iostream> #include <uuid/uuid.h> #include <json-c/json.h> #include <json-c/json_types.h> Loading