[+] added use_folders cmake feature if cmake version is greater then 2.8.0

[~] fixed warning in featuers2d under windows (can't generate assignment operator)
This commit is contained in:
Anatoly Baksheev
2011-05-11 13:37:20 +00:00
parent c46b510f4c
commit c49dc37761
20 changed files with 338 additions and 12 deletions

View File

@@ -37,6 +37,9 @@ macro(define_opencv_module name)
SOVERSION ${OPENCV_SOVERSION}
OUTPUT_NAME "${the_target}${OPENCV_DLLVERSION}"
)
if(SOLUTION_FOLDERS_ENABLED)
set_target_properties(${the_target} PROPERTIES FOLDER "modules")
endif()
if (OPENCV_BUILD_SHARED_LIB)
#add_definitions(-DCVAPI_EXPORTS)
@@ -132,6 +135,10 @@ macro(define_opencv_module name)
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
)
if(SOLUTION_FOLDERS_ENABLED)
set_target_properties(${the_target} PROPERTIES FOLDER "tests")
endif()
add_dependencies(${the_target} ${test_deps})