readme.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #####################
  26. set(NICE_CURR_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
  27. #### geile funktionen der OpenCV:
  28. ---aus OpenCVUtils.cmake:
  29. macro(ocv_convert_to_full_paths VAR) # convert list of paths to full paths
  30. macro(ocv_get_real_path VAR PATHSTR) # get absolute path with symlinks resolved
  31. macro(ocv_list_add_suffix LST SUFFIX) # add suffix to each item in the list
  32. macro(ocv_list_add_prefix LST PREFIX) # add prefix to each item in the list
  33. macro(ocv_list_unique __lst)# stable & safe duplicates removal macro
  34. OpenCVModule.cmake
  35. ocv_glob_modules(pathcurrdir) -->in modules
  36. in jedem untermodel, eg core
  37. ocv_add_module(modname)
  38. sets variable "the_module" => set(the_module opencv_${name})
  39. extra abhängikeitens über zweites argument in der funktion, eg. ocv_add_module(core ${ZLIB_Lbla})
  40. ocv_module_include_directories() ( auch mit zusatzincludes dann übergeben ${ZLib_include_Dir})
  41. ocv_glob_module_sources() holt cpps und hpp h aus unterordnern -- sources bilden
  42. ocv_create_module (binary build the module ->add_library, set_target etc