https://github.com/Kitware/CMake
Raw File
Tip revision: 965acca98c1f8b3c511589a4a455df2b12bc2b8e authored by Brad King on 04 March 2024, 18:58:26 UTC
CMake 3.29.0-rc3
Tip revision: 965acca
sharedlibtestexe.cpp

#ifndef SHAREDLIB_DEFINE
#  error Expected SHAREDLIB_DEFINE
#endif

#ifndef SHAREDDEPENDLIB_DEFINE
#  error Expected SHAREDDEPENDLIB_DEFINE
#endif

#include "shareddependlib.h"
#include "sharedlib.h"

int main(int, char**)
{
  SharedLibObject sl;
  SharedDependLibObject sdl = sl.object();

  return sdl.foo() + sl.foo();
}
back to top