Commit 30ccd969 authored by Nathan Chambron's avatar Nathan Chambron
Browse files

first commit

parent 8cadf973
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+12 −0
Original line number Original line Diff line number Diff line
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
node_modules
+26 −0
Original line number Original line Diff line number Diff line
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md


CMakeLists.txt
+18 −0
Original line number Original line Diff line number Diff line
README.md
api/DefaultApi.cpp
api/DefaultApi.h
api/TrackablesApi.cpp
api/TrackablesApi.h
impl/DefaultApiImpl.cpp
impl/DefaultApiImpl.h
impl/TrackablesApiImpl.cpp
impl/TrackablesApiImpl.h
main-api-server.cpp
model/Error.cpp
model/Error.h
model/Helpers.cpp
model/Helpers.h
model/Trackable.cpp
model/Trackable.h
model/TrackableEncodingInformationStructure.cpp
model/TrackableEncodingInformationStructure.h
+1 −0
Original line number Original line Diff line number Diff line
5.3.1
 No newline at end of file
+38 −0
Original line number Original line Diff line number Diff line
cmake_minimum_required (VERSION 3.2)

project(PistacheGen)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pg -g3" )

include(ExternalProject)

set(EXTERNAL_INSTALL_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/external)

find_package(PkgConfig)
pkg_check_modules(PISTACHE REQUIRED libpistache)

include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)

include_directories(model)
include_directories(api)
include_directories(impl)

file(GLOB SRCS
    ${CMAKE_CURRENT_SOURCE_DIR}/api/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/impl/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/model/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/model/nlohamnn/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
)

file(GLOB HDRS
    ${CMAKE_CURRENT_SOURCE_DIR}/api/*.h
    ${CMAKE_CURRENT_SOURCE_DIR}/model/*.h
)

add_library(${PROJECT_NAME} ${SRCS} )
target_link_libraries(${PROJECT_NAME} pistache pthread)

install(TARGETS ${PROJECT_NAME} DESTINATION /usr/lib)
install(FILES ${HDRS} DESTINATION include)
Loading