Project

General

Profile

Actions

action #68684

closed

Port os-autoinst's build system to CMake

Added by mkittler almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2020-07-06
Due date:
% Done:

0%

Estimated time:

Description

This idea is not new and there are already existing changes one can use as a starting point: https://github.com/os-autoinst/os-autoinst/pull/1369

  • AC0: The old build system still remains in place until the CMake-based build system has been tested sufficiently.
  • AC1: Everything is built using CMake. There are no nested build systems. (That is actually the most annoying part of the current build system. The auto-tools based scripts invoke another Makefile generator to build the OpenCV bindings. This is responsible for a lot of issues within the current build system.)
  • AC2: Support out-of-source-tree builds to avoid polluting the Git checkout and ease . (Likely we nevertheless need to create symlinks for certain binaries so the Perl runtime can find them without further hacks.)
  • AC3: Don't hard code any compiler/linker flags which are better set from the outside. (E.g. the old build system hardcodes -g3 in some place. In the CMake port we should avoid doing that and rely on the standard way of the build system to configure a debug build.)
  • AC4: The dependency lookup is done using CMake's find modules or pkg-config (instead of hard coding library names and paths).
Actions

Also available in: Atom PDF