GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AliceO2/Examples/ExampleModule2 at dev · dberzano/AliceO2

This repository was archived by the owner on Sep 26, 2019. It is now read-only.

Expand file tree

/

ExampleModule2

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

ExampleModule2

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
cmake
cmake
 
 
doc
doc
 
 
include/ExampleModule2
include/ExampleModule2
 
 
src
src
 
 
test
test
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 

README.md

Example 2

[TOC]

TODO : explain what is specific to this example

This is an example of a basic module using the O2 CMake macros to generate a library and an executable. It also generates the ROOT dictionary.

In particular :

  • O2_SETUP : necessary to register the module in O2.
  • O2_GENERATE_LIBRARY : use once and only once per module to generate a library.
  • O2_GENERATE_EXECUTABLE : generate executables.

We have one class that belongs to the interface (Foo) and for which a dictionary is generated and one class that is internal (Bar) without dictionary. We use NO_DICT_SRCS for the latter. The header of Foo should go to the include directory whereas the header of Bar must go to the src directory.

Foo uses Bar, both are included in the library. The executable uses Foo.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.