https://github.com/Kitware/CMake
Raw File
Tip revision: c4ab098097f4fe1bc85ee29c6de390dff435f63f authored by Brad King on 09 August 2018, 12:06:18 UTC
CMake 3.12.1
Tip revision: c4ab098
exe.c
#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB)
#  define IMPORT __declspec(dllimport)
#else
#  define IMPORT
#endif

extern IMPORT int b(void);
int main()
{
  return b();
}
#ifndef REQUIRED
#  error "REQUIRED needs to be defined"
#endif
back to top