Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Merge pull request #13 from vvolkl/release-1.0.7
Browse files Browse the repository at this point in the history
Release 1.0.7
  • Loading branch information
vvolkl authored Feb 27, 2019
2 parents d3a0ed8 + 196e059 commit d7bb1c2
Show file tree
Hide file tree
Showing 64 changed files with 1,258 additions and 13,256 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

integration
build
install

Expand Down
45 changes: 16 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.2)
# - Call project() to setup system
# From CMake 3, we can set the project version easily in one go
project(tricktrack VERSION 0.1.0)
project(tricktrack VERSION 1.0.7)

#--- Define basic build settings -----------------------------------------------
# - Use GNU-style hierarchy for installing build products
Expand All @@ -25,28 +25,15 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
endif()
endif()

# - Define the C++ Standard to use (Simplest Possible)
# This will add any compiler flags needed to compile against the required standard
# without any vendor extensions
# NOTE: It *does not* guarantee that the compiler in use supports the complete
# standard. Nor does it inform clients of the project what standard was used.
# Both of these issues can be resolved using CMake's compile features, see
#
# - https://cmake.org/cmake/help/v3.3/manual/cmake-compile-features.7.html
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
#--- Define the C++ Standard to use -------------------------------------------
set(CMAKE_CXX_STANDARD 14 CACHE STRING "")

#--- Declare options -----------------------------------------------------------
option(tricktrack_documentation "Whether or not to create doxygen doc target.")
option(tricktrack_documentation "Create doxygen doc target." OFF)
option(tricktrack_python "Create python bindings for tricktrack" OFF)
option(tricktrack_logger "Use spdlog for logging" OFF)
option(tricktrack_logger_standalone "Use spdlog standalone (as opposed to in a framework" OFF)

option(tricktrack_python "Whether or not to create python bindings for tricktrack" OFF)

option(tricktrack_logger "Whether or not to use spdlog for logging" OFF)
option(tricktrack_logger_standalone "Whether or not to use standalone logger" OFF)
if (tricktrack_logger_standalone)
add_definitions(-DUSE_SPDLOG_STANDALONE)
endif()

#--- enable unit testing capabilities ------------------------------------------
include(CTest)
Expand All @@ -61,19 +48,18 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})

#--- logger setup --------------------------------------------------------------
if (tricktrack_logger)
find_package(spdlog)
if (NOT spdlog_FOUND)
include_directories(include/spdlog)
else()
include_directories(${SPDLOG_INCLUDE_DIR})
endif()

find_package(spdlog REQUIRED)
include_directories(${SPDLOG_INCLUDE_DIR})
find_package(Threads REQUIRED)

add_definitions(-DUSE_SPDLOG)
endif()

if (tricktrack_logger_standalone)
add_definitions(-DUSE_SPDLOG_STANDALONE)
endif()


#--- target for Doxygen documentation ------------------------------------------
if(tricktrack_documentation)
Expand All @@ -94,8 +80,9 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
${CMAKE_CURRENT_SOURCE_DIR}/NOTICE
DESTINATION ${CMAKE_INSTALL_DOCDIR})

add_subdirectory(tests)
#--- add actual code -----------------------------------------------------------
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(profiling)
if (tricktrack_python)
add_subdirectory(python)
Expand Down
13 changes: 10 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
mkdir build install || true
mkdir build install integration || true
git submodule add https://github.com/pybind/pybind11 python/pybind11 || true
cd python
patch -p1 -t < python2.7.patch || true
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install -Dtricktrack_logger=ON -Dtricktrack_logger_standalone=ON -Dtricktrack_python=ON
cd ../build
cmake .. -DCMAKE_INSTALL_PREFIX=../install -Dtricktrack_python=ON
make install -j 4
make test
cd ..
export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$PWD/install
cd integration
cmake ../tests/integration
make -j 4
make test
cd ..



2 changes: 2 additions & 0 deletions cmake/tricktrackConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ set(tricktrack_VERSION "@PROJECT_VERSION@")
# the imported targets created later.
set_and_check(tricktrack_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")

set_and_check(tricktrack_LIBRARIES "@PACKAGE_CMAKE_INSTALL_LIBDIR@/libtricktrack.so")


# - Include the targets file to create the imported targets that a client can
# link to (libraries) or execute (programs)
Expand Down
72 changes: 0 additions & 72 deletions include/spdlog/async_logger.h

This file was deleted.

182 changes: 0 additions & 182 deletions include/spdlog/common.h

This file was deleted.

Loading

0 comments on commit d7bb1c2

Please sign in to comment.