diff --git a/.travis.yml b/.travis.yml index a9623bb..ae171f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ matrix: -Dtest-utils_DIR:PATH=$(pwd)/build/submodules/test-utils -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE -DCOVERAGE:BOOL=ON - - cmake --build build/tests/unit --target run-all-tests-verbose --config $BUILD_TYPE + - cmake --build build/tests/unit --target run-all-tests-verbose --config $BUILD_TYPE -- -j $(nproc) - bash <(curl -s https://codecov.io/bash) @@ -79,7 +79,7 @@ matrix: -Dtest-utils_DIR:PATH=$(pwd)/build/submodules/test-utils -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE -DCOVERAGE:BOOL=ON - - cmake --build build/tests/unit --target run-all-tests-verbose --config $BUILD_TYPE + - cmake --build build/tests/unit --target run-all-tests-verbose --config $BUILD_TYPE -- -j $(sysctl -n hw.ncpu) - set +e diff --git a/CMakeLists.txt b/CMakeLists.txt index a06c7b3..185c295 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR) -project(function-loader VERSION 1.2.2 LANGUAGES CXX) +project(function-loader VERSION 1.2.3 LANGUAGES CXX) add_library(${PROJECT_NAME} INTERFACE) diff --git a/README.md b/README.md index 982561b..2cf0176 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Version](https://img.shields.io/badge/version-1.2.2-green.svg) +![Version](https://img.shields.io/badge/version-1.2.3-green.svg) [![License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat)](LICENSE) [![Build Status](https://travis-ci.org/karel-burda/function-loader.svg?branch=develop)](https://travis-ci.org/karel-burda/function-loader) [![Codecov Status](https://codecov.io/gh/karel-burda/function-loader/branch/develop/graph/badge.svg)](https://codecov.io/gh/karel-burda/function-loader/branch/develop) @@ -40,7 +40,7 @@ There are essentially these ways of how to use this package depending on your pr Call `add_subdirectory(...)` directly in your CMakeLists.txt: ```cmake -add_executable("my-project" main.cpp) +add_executable(my-project main.cpp) add_subdirectory() # example: add_subdirectory(function-loader ${CMAKE_BINARY_DIR}/function-loader) @@ -51,8 +51,8 @@ message(STATUS "Current version of function-loader is: ${function-loader_VERSION add_library(burda::function-loader ALIAS function-loader) # this will import search paths, compile definitions and other dependencies of the function-loader as well -target_link_libraries("my-project" function-loader) -# or with private visibility: target_link_libraries("my-project" PRIVATE function-loader) +target_link_libraries(my-project function-loader) +# or with private visibility: target_link_libraries(my-project PRIVATE function-loader) ``` ### B) Generate separately @@ -68,7 +68,7 @@ This will create automatically generated package configuration file `function-lo Then you can do this in your CMakeLists.txt: ```cmake -add_executable("my-project" main.cpp) +add_executable(my-project main.cpp) find_package(function-loader CONFIG PATHS ) # alternatively assuming that the "function-loader_DIR" variable is set: find_package(function-loader CONFIG) @@ -77,8 +77,8 @@ find_package(function-loader CONFIG PATHS