Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
- name: Build Project
run: cmake --build build --config Release

- name: Install Project
run: cmake --install build --prefix install

- name: Upload Project
uses: actions/[email protected]
with:
name: package-${{ matrix.os }}
path: install

build-examples:
name: Build Examples
runs-on: ${{ matrix.os }}-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
!.git*

build
install
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,23 @@ add_subdirectory(components)
if(NOT_SUBPROJECT AND BUILD_DOCS)
add_subdirectory(docs)
endif()

install(
TARGETS errors errors_format
EXPORT errors_targets
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
FILE_SET HEADERS
)

install(
EXPORT errors_targets
FILE ErrorsTargets.cmake
NAMESPACE errors::
DESTINATION lib/cmake/Errors
)

install(
FILES cmake/ErrorsConfig.cmake
DESTINATION lib/cmake/Errors
)
2 changes: 2 additions & 0 deletions cmake/ErrorsConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
find_package(FMT REQUIRED)
include(${CMAKE_CURRENT_LIST_DIR}/ErrorsTargets.cmake)