https://github.com/Kitware/CMake
Raw File
Tip revision: 50fc9d5b45a7dcbb11152ea77b2d47c66e277265 authored by Brad King on 16 February 2021, 17:11:10 UTC
CMake 3.20.0-rc1
Tip revision: 50fc9d5
main_debug.cpp
#ifndef CFG_DEBUG
#  error "This source should only be compiled in a Debug configuration."
#endif
#ifdef CFG_OTHER
#  error "This source should not be compiled in a non-Debug configuration."
#endif

#include "iface.h"

extern int custom1_debug();
extern int custom2_debug();
extern int custom3_debug();
extern int custom4_debug();
extern int custom5_debug();

int main(int argc, char** argv)
{
  return iface_src() + iface_debug() + custom1_debug() + custom2_debug() +
    custom3_debug() + custom4_debug() + custom5_debug();
}
back to top