FindOmnetPP¶
This module finds the OMNeT++ libraries and include directory. Simply use it by invoking find_package:
find_package(OmnetPP
[version] [EXACT] # minimum or EXACT version, e.g. 5.6.2
[REQUIRED] # fail with error if OMNeT++ is not found
)
Result variables¶
OMNETPP_FOUNDTrue if OMNeT++ is found.
OMNETPP_LIBRARIESList of OMNeT++ library targets, see imported targets below.
OMNETPP_VERSIONOMNeT++ version number in
X.Y.Zformat.
Cache variables¶
OMNETPP_ROOTRoot directory of OMNeT++.
OMNETPP_INCLUDE_DIRDirectory containing OMNeT++ header files, usually
OMNETPP_ROOT/include.OMNETPP_MSGCThe OMNeT++ message compiler.
OMNETPP_FEATURETOOLThe OMNeT++ feature tool.
OMNETPP_RUNThe opp_run executable for release runs.
OMNETPP_RUN_DEBUGThe opp_run_dbg executable for debug runs.
OMNETPP_RUNALLThe opp_runall script.
OMNETPP_<X>_LIBRARY_DEBUGandOMNETPP_<X>_LIBRARY_RELEASEThe debug and release build variants of each OMNeT++ library.
Imported targets¶
The following targets referring to individual OMNeT++ libraries are imported:
OmnetPP::<X>where
<X>refers to one ofcmdenv
common
envir
eventlog
layout
main
nedxml
qtenv
qtenv-osg
scave
sim
tkenv
OmnetPP::headeris an interface target which provides you the compile definitions and include directories for OMNeT++ but no actual library.