Commit 904f56f8 authored by Jan Möbius's avatar Jan Möbius

Protect PluginFunctionsCore with warning when being used outside of core

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10426 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 31223a17
......@@ -59,6 +59,18 @@
#ifndef PLUGINFUNCTIONSCORE_HH
#define PLUGINFUNCTIONSCORE_HH
#ifndef OPENFLIPPERCORE
#ifndef OPENFLIPPERPLUGINLIB
#ifdef WIN32
#pragma message("PluginFunctionsCore is only allowed to be used from within OpenFlippers Core application!")
#else
#warning PluginFunctionsCore is only allowed to be used from within OpenFlippers Core application!
#error Bla
#endif
#endif
#endif
#include <OpenFlipper/common/GlobalDefines.hh>
#include <OpenFlipper/widgets/glWidget/QtBaseViewer.hh>
......
......@@ -86,6 +86,9 @@ else ()
acg_add_executable (OpenFlipper ${uic_targets} ${sources} ${headers} ${moc_targets})
endif ()
# Mark this build part as building OpenFLippers Core
add_definitions(-DOPENFLIPPERCORE )
target_link_libraries (OpenFlipper
OpenMeshCore
......
......@@ -59,6 +59,10 @@ add_definitions (
-DCORE_VERSION="${OPENFLIPPER_VERSION}"
)
# Mark this build part as building OpenFLippers Core
add_definitions(-DOPENFLIPPERPLUGINLIB )
# collect all header,source and ui files
acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment