readme.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. notes on porting NICE to WIN using CMAKE:
  2. ------------------------------------------
  3. porting core/basics/timer.h/cpp
  4. highly unix dependend
  5. better use 3rd party time functionality for now()
  6. better use
  7. boost::timer ??
  8. ---------------------------
  9. stringtools highly os dependented
  10. ->recursive dir scan with "ls -r" syntax!!
  11. use 3rd party lib like boost oder qt
  12. use boost regex for regex syntax in stringtools::regex bla
  13. -----------------------------------------------------------------------
  14. macro add_all_subdirs()
  15. set(_all_headers)
  16. set(_all_sources)
  17. set(_all_linkings)
  18. #ge
  19. foreach dir in subdirlist
  20. {
  21. add_directories( dir )
  22. #add header, sources, linkings from subdir to _all_* variables
  23. }
  24. endmacro
  25. set(NICE_CURR_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
  26. #### geile funktionen der OpenCV:
  27. ---aus OpenCVUtils.cmake:
  28. macro(ocv_convert_to_full_paths VAR) # convert list of paths to full paths
  29. macro(ocv_get_real_path VAR PATHSTR) # get absolute path with symlinks resolved
  30. macro(ocv_list_add_suffix LST SUFFIX) # add suffix to each item in the list
  31. macro(ocv_list_add_prefix LST PREFIX) # add prefix to each item in the list
  32. macro(ocv_list_unique __lst)# stable & safe duplicates removal macro
  33. OpenCVModule.cmake
  34. ocv_glob_modules(pathcurrdir) -->in modules
  35. in jedem untermodel, eg core
  36. ocv_add_module(modname)
  37. sets variable "the_module" => set(the_module opencv_${name})
  38. extra abhängikeitens über zweites argument in der funktion, eg. ocv_add_module(core ${ZLIB_Lbla})
  39. ocv_module_include_directories() ( auch mit zusatzincludes dann übergeben ${ZLib_include_Dir})
  40. ocv_glob_module_sources() holt cpps und hpp h aus unterordnern -- sources bilden
  41. ocv_create_module (binary build the module ->add_library, set_target etc
  42. #######
  43. defs to care about
  44. NICE_USELIB_CUDACHOLESKY
  45. NICE_USELIB_IPP