Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cxxopts for command line arguments #86

Merged
merged 8 commits into from
Apr 15, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install -y libeigen3-dev libarpack2-dev libgtest-dev libfmt-dev
run: sudo apt-get install -y libeigen3-dev libarpack2-dev libgtest-dev libfmt-dev libcxxopts-dev

- name: Configure
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install dependencies
run: brew install arpack eigen googletest fmt
run: brew install arpack eigen googletest fmt cxxopts

- name: Configure
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
channels: conda-forge

- name: Install conda packages
run: conda install gtest eigen fmt
run: conda install gtest eigen fmt cxxopts

- name: Configure
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ set (EIGEN3_LIBRARY_TO_LINK "Eigen3::Eigen")
find_package(fmt REQUIRED)
set (FMT_LIBRARY_TO_LINK "fmt::fmt-header-only")

# cxxopts
find_package(cxxopts REQUIRED)

# ARPACK detection
find_package(Arpack)
if (ARPACK_FOUND)
Expand Down Expand Up @@ -56,8 +59,6 @@ if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

option(USE_SLASH_CLI_WINDOWS "Whether to use slash command line parameters" OFF)

# library interface
file(GLOB_RECURSE headers_library "${TAPKEE_INCLUDE_DIR}/*.hpp")
add_library(tapkee_library INTERFACE)
Expand Down
9 changes: 0 additions & 9 deletions MIT-LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,3 @@ Exceptions are:

- [Covertree code](https://github.com/lisitsyn/tapkee/blob/master/include/neighbors/covertree.hpp) by John Langford and Dinoj Surendran
which is distributed under the [LGPLv3 license](https://github.com/lisitsyn/tapkee/blob/master/LGPL-LICENSE).

- [EZOptionsParser](https://github.com/lisitsyn/tapkee/blob/master/src/ezoptionparser.hpp) by Remik Ziemlinski which is distributed
under the [MIT license](https://github.com/lisitsyn/tapkee/blob/master/MIT-LICENSE).
Loading
Loading