3.0 alpha, Debug is linked to release libraries by default using CMake

asked 2014-08-28 11:12:12 -0500

Mavericklsd gravatar image

updated 2014-08-28 11:16:59 -0500

Really exciting to try the new opencv 3.0 alpha! But when I tried linking my app with OpenCV 3.0 alpha using CMake, I notice that both the Debug and Release are linked to release versions of opencv modules. I wonder if it is on purpose to do that? I'm using VS2013.

Here are my CMakeLists.txt:

project( FreakCPU )
cmake_minimum_required(VERSION 2.8)
find_package( OpenCV REQUIRED PATHS $ENV{OPENCV_NEW} /usr NO_DEFAULT_PATH)
include_directories( $ENV{OPENCV_NEW}/include )
add_executable( FreakCPU FreakCPU.cpp )
target_link_libraries( FreakCPU ${OpenCV_LIBS} )
edit retag flag offensive close merge delete