I am trying to compile the conv-net library in my mac osx yosemite with xcode. I even set the flags to libstdc++ still it is not linking properly.
i still get undefi
The add_executable
command takes a target name and a list of source files to be compiled. When you are creating a target for testimg
you are passing it directory.
Use file(GLOB ...) command to gather all source files from directory into a list variable and pass it to add_executable
call.
I fixed it by adding -c option in the compiler flags and it worked !!!!