Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  28 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
    Reply  28 May 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
       Reply  28 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
          Reply  29 May 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
       Reply  03 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
          Reply  05 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
             Reply  17 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
                Reply  17 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
                Reply  17 Jun 2019, Stefan Ritt, Info, MIDAS switching to Cmake 
                   Reply  18 Jun 2019, Konstantin Olchanski, Info, MIDAS switching to Cmake 
Message ID: 1533     Entry time: 28 May 2019     In reply to: 1532     Reply to this: 1534   1539
Author: Konstantin Olchanski 
Topic: Info 
Subject: MIDAS switching to Cmake 
> Great news!

Some additional information.

1) cmake3 is available on all currently supported systems:

- SL6 (el6), CentOS7 (el7): yum install cmake3 (from EPEL) (invoke as "cmake3")
- Ubuntu 18.04 LTS: apt-get install cmake (invoke as "cmake").
- MacOS: install "mac ports", then "port install cmake"
- Windows - we hope to revive windows10 support this summer

> - To use Cmake, do
> 
> midas$ mkdir build
> midas$ cd build
> midas/build$ cmake ..
> midas/build$ make
>
> - After successful compilation, all programs and libraries are in the "build" directory
> 

The old "linux", "darwin", etc subdirectories go away. Makefiles for frontends and analyzers become simplified
and can refer to MIDAS in a standard way:

header files: -I$(MIDASSYS)/include
libraries and object files: -L$(MIDASSYS)/build/lib -lmidas
executables: PATH += $(MIDASSYS)/build/bin

>
> ... cross compilation ...
>

We will review the situation with cross-compilation once the dust settles a little bit on changes
with cmake and with the switch to C++.

Since cross-compilation environments are rarely standardized, I do not expect cmake to be of much help and most
likely we will have a simplified Makefile for cross-building feature-reduced versions of MIDAS - probably only
the pieces needed for running remotely-connected frontends (see "ifdef LOCAL_ROUTINES").

K.O.
ELOG V3.1.4-2e1708b5