Closed GoogleCodeExporter closed 9 years ago
Hi again!
I have no idea that CMake can find OpenCV automatically already.
Only one thing: do you know if there is any way to indicate the path of OpenCV
to CMake? With my script I can do it, and it is useful for some things...
Anyway, I will implement the changes you propose, because it will be better and
easier for most users.
Thank you very much for your help!
Original comment by grendel....@gmail.com
on 20 Dec 2010 at 8:48
Done!
Original comment by grendel....@gmail.com
on 20 Dec 2010 at 9:02
One thing: I just have made a change in "cvBlob/CMakeLists.txt" to build
dynamic libraries instead of static. Please, can you check if it builds a DLL
and link it with no problems?
Thanks!!
Original comment by grendel....@gmail.com
on 20 Dec 2010 at 9:29
In order to make the linker work, you should add :
TARGET_LINK_LIBRARIES( cvblob ${OpenCV_LIBS} ) after the line
add_library(cvblob SHARED ${cvBlob_CVBLOB}) in the CMakeLists.txt in the cvblob
directory.
It then creates the dll and everything works nicely.
You can change the path of OpenCV in CMake, the variable is called OpenCV_DIR.
That's really useful when you have multiple versions of OpenCV.
Original comment by recastro...@gmail.com
on 20 Dec 2010 at 10:15
Original issue reported on code.google.com by
recastro...@gmail.com
on 18 Dec 2010 at 11:52