24 Commits

Author SHA1 Message Date
Mizux Seiha
f01debfd27 cmake: rework patch version computation 2025-12-05 08:27:00 +01:00
Mizux Seiha
32ee8627ca cmake: rename PRE_RELEASE as RELEASE_CANDIDATE 2025-12-03 14:43:36 +01:00
Mizux Seiha
9845ee219b cmake: fix python pre release support 2025-12-03 14:42:53 +01:00
Corentin Le Molgat
a66a6daac7 Bump Copyright to 2025 2025-01-10 11:35:44 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Corentin Le Molgat
045a5d93b7 Sync google3 github 2022-06-17 14:23:23 +02:00
Mizux Seiha
6376c0e72f version: be able to override MAJOR/MINOR/PATCH
* now, we can use OR_TOOLS_* to overload version name
* rename GIT_REVISION in OR_TOOLS_PATCH for consistency
2022-06-02 18:12:48 +02:00
Corentin Le Molgat
2c72f93aed cmake: Compute PATCH from the lastest vX.0 version 2022-05-27 15:13:48 +02:00
Corentin Le Molgat
df8cbb3d76 fix: rename master to main in build file 2022-05-16 11:27:36 +02:00
Corentin Le Molgat
65c8255614 cmake: Change PATCH computation
now extract it from `git describe --tags`
2022-05-02 14:50:22 +02:00
Mizux Seiha
8df2add59c cmake(java): rework sample/example management 2020-09-17 18:01:22 +02:00
Mizux Seiha
85b2fa4a64 java: Add exec.mainClass property in sample 2020-09-16 22:42:39 +02:00
Mizux Seiha
4f9c88ff83 cmake(java): Add support for examples and test (#202) 2020-09-16 14:19:07 +02:00
Mizux Seiha
160721b1d6 cmake: Fix version management 2020-09-16 14:18:06 +02:00
Mizux Seiha
37d03acd06 cmake: cleanup utils.cmake 2020-09-15 21:54:50 +02:00
Mizux Seiha
fffa7d6911 cmake: Add java samples (#202) 2020-09-15 21:54:50 +02:00
Mizux Seiha
08d7a58ddd cmake: rewrite custom FetchContent
note: before cmake 3.18 FetchContent does not support
SOURCE_SUBDIR which is needed for protobuf
2020-07-17 13:16:22 +02:00
Corentin Le Molgat
a49b9143a4 Rework CMake dependencies management (Fix #1116)
- By default don't build dependencies simply call find_package()
- By default only build C++ library
- IF building Python, Java or .Net wrapper then force build dependencies
  - Build dependencies as STATIC
  - Build and Install (in CMAKE_BINARY_DIR) dependencies at configure time
2019-04-11 13:47:05 +02:00
Corentin Le Molgat
4156f03933 utils.cmake fix version retrieval 2018-10-12 09:48:12 +02:00
Corentin Le Molgat
42d7c276ab dotnet: rework example layout
- Fix examples using MPConstraint::Activity instead of MPSolver
- Move all examples to exmaples/dotnet
- remove netfx sub-directories
- Add all examples to target test_dotnet
  - still few disabled since they are too long
- Add tools/generate_examples_csproj.sh to generate .*proj files
2018-08-30 11:58:47 +02:00
Corentin Le Molgat
6856567eda Rework CMakeLists.txt
Dependencies:
- Add dependencies as subprojects instead of prebuild (aka imported target)
- add zlib project
- Use Cbc as CMake subproject instead of prebuilt
- Add log between each subproject
- Force gflags namespace to gflags

Or-tools:
- Rework python.cmake support
- Fix missing ortool.util in python (#558)
- Try to use static library for ortools::proto
pros: can use target_link_libraries to get includes etc...
cons: lot of symbols undefined since libortools.so will strip everything -_-
- Use add_library(XXX OBJECT) for ortools/*
- fix get version from git when using small depth copy
- Create Install rule for ortools
- Don't create export rules
note: since we use subprojects instead of Imported Target,
ortools export complained against target deps "that is not in the export set."

Update windows support
- add swig project
- Protobuf force the use of /MD instead of /MT
- or-tools use /MD by default
- Add missing ws2_32
- Add missing psapi
- Update windows disable warnings list
- Build Static or-tools on Windows
- fix windows export symbols leak issue

Signed-off-by: Corentin Le Molgat <corentinl@google.com>
2018-01-19 15:03:25 +01:00
Laurent Perron
33314b1869 cleanup sat code after change to allow linear objective 2017-07-05 16:27:00 -07:00
Amit Prakash Ambasta
91557b58db Incorrect naming for output var for git in utils 2017-07-03 16:16:20 +05:30
Amit Prakash Ambasta
c5c1d3d56f Added version detection support from git tags with fallback to file, added ability to generate cmake config files 2017-07-03 15:30:25 +05:30