Skip to content
Snippets Groups Projects
Commit fc39ff95 authored by Jaime Arias's avatar Jaime Arias
Browse files

refactor: move to third-party folder

parent ee32089e
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ _deps
.history
.ionide
.cache
optLP
build
.vscode
......
[submodule "libs/or-tools"]
path = libs/or-tools
[submodule "third-party/or-tools"]
path = third-party/or-tools
url = https://github.com/google/or-tools.git
......@@ -10,20 +10,15 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Ensure that or-tools library is built statically
# Ensure that libraries are built statically
set(BUILD_DEPS ON)
set(BUILD_SHARED_LIBS OFF)
# Installing folder
set(INSTALL_FOLDER ${optlp_SOURCE_DIR}/assets)
# libraries PATH
set(LIBS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libs)
# add ortools library
set(ORTOOLS_DIR "${LIBS_DIR}/or-tools")
message(STATUS "Building or-tools ...")
add_subdirectory(${ORTOOLS_DIR})
# Third-party libraries
add_subdirectory(third-party)
# add includes folder
include_directories(include)
......
# optlp
```sh
git clone --recursive https://depot.lipn.univ-paris13.fr/hadhami.ouni/optlp
git clone --recursive https://depot.lipn.univ-paris13.fr/PMC-SOG/optlp
```
## Description
......@@ -50,6 +50,7 @@ function minimizes the cost of coverage by reducing the sum of the lengths of
the selected paths.
## Requirements
Make sure to install the necessary dependencies before running the program:
- `gcc` >= 9.3.0
......@@ -67,6 +68,7 @@ cmake --install build # installs the project: ./assets/optlp
```
## Run
Once installed, the binary `optlp` will be in the `assets` folder.
```sh
......@@ -85,6 +87,7 @@ To generate a random graph, use the following options:
--nb-edges <m> \
--nb-labels <l>
```
where:
- `--nb-nodes <n>`: Specifies the number of nodes in the graph.
......@@ -92,6 +95,7 @@ where:
- `--nb-labels <l>`: Specifies the number of labels in the graph.
**Example:**
```sh
./optlp --nb-nodes 200 --nb-edges 100 --nb-labels 20
```
......@@ -117,17 +121,16 @@ where:
```
### Help
If no options are provided or the help option is specified, the program will
display a help message with usage instructions.
```sh
./optlp --help
```
The help message will display the following:
```sh
/**************************************************************/
/******************** help ********************/
......
# ortools library
message(STATUS "Building or-tools ...")
add_subdirectory("or-tools")
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment