Ok, so I'm trying to find if there is an existant declaration of a function in main.cpp with CMake, but CMake doesn't want to find it.
So far I've tried this:
include(CheckFunctionExists)
CHECK_FUNCTION_EXISTS(draw DRAWFUN)
this
include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(main.cpp draw main.cpp DRAWFuN)
this
include(CheckSymbolExists)
CHECK_SYMBOL_EXISTS(draw main.cpp DRAWFUN)
and lastly this
include(CheckCXXSymbolExists)
CHECK_CXX_SYMBOL_EXISTS(draw main.cpp DRAWFUN)
but as I've mentioned before, none of those work. All they say is
-- Looking for draw
-- Looking for draw - not found
-- Configuring done
-- Generating done
So my question is what am I doing wrong and how can I get it working?
Thanks in advance
EDIT: main.cpp file:
#include "P5c.h"
void setup(){
size(800, 600);
background(51);
}
void draw(){
background(51);
}