|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
10 Aug 2020, Mathieu Guigue, Info, MidasConfig.cmake usage
|
28 May 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
28 May 2021, Marius Koeppel, Info, MidasConfig.cmake usage
|
28 May 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
31 May 2021, Stefan Ritt, Info, MidasConfig.cmake usage
|
02 Jun 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
04 Jun 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
04 Jun 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
20 Jun 2021, Lukas Gerritzen, Suggestion, MidasConfig.cmake usage
|
20 Jun 2021, Konstantin Olchanski, Suggestion, MidasConfig.cmake usage
|
22 Jun 2021, Lukas Gerritzen, Suggestion, MidasConfig.cmake usage
|
24 Jun 2021, Konstantin Olchanski, Suggestion, MidasConfig.cmake usage
|
11 Jul 2021, Konstantin Olchanski, Suggestion, MidasConfig.cmake usage
|
13 Jul 2021, Stefan Ritt, Info, MidasConfig.cmake usage
|
13 Jul 2021, Konstantin Olchanski, Info, MidasConfig.cmake usage
|
|
Message ID: 2262
Entry time: 13 Jul 2021
In reply to: 2261
|
Author: |
Konstantin Olchanski |
Topic: |
Info |
Subject: |
MidasConfig.cmake usage |
|
|
> $MIDASSYS/drivers/class/
> $MIDASSYS/drivers/device
> $MIDASSYS/mscb/src/
> $MIDASSYS/src/mfe.cxx
>
> I guess this can be easily added by defining a MIDAS_SOURCES in MidasConfig.cmake, so
> that I can do things like:
>
> add_executable(my_fe
> myfe.cxx
> $(MIDAS_SOURCES}/src/mfe.cxx
> ${MIDAS_SOURCES}/drivers/class/hv.cxx
> ...)
1) remove $(MIDAS_SOURCES}/src/mfe.cxx from "add_executable", add "mfe" to
target_link_libraries() as in examples/experiment/frontend:
add_executable(frontend frontend.cxx)
target_link_libraries(frontend mfe midas)
2) ${MIDAS_SOURCES}/drivers/class/hv.cxx surely is ${MIDASSYS}/drivers/...
If MIDAS is built with non-default CMAKE_INSTALL_PREFIX, "drivers" and co are not
available, as we do not "install" them. Where MIDASSYS should point in this case is
anybody's guess. To run MIDAS, $MIDASSYS/resources is needed, but we do not install
them either, so they are not available under CMAKE_INSTALL_PREFIX and setting
MIDASSYS to same place as CMAKE_INSTALL_PREFIX would not work.
I still think this whole business of installing into non-default CMAKE_INSTALL_PREFIX
location has not been thought through well enough. Too much thinking about how cmake works
and not enough thinking about how MIDAS works and how MIDAS is used. Good example
of "my tool is a hammer, everything else must have the shape of a nail".
K.O. |