소스 검색

cmake: changed to using recursive source code scan

Johannes Ruehle 11 년 전
부모
커밋
570255614e
4개의 변경된 파일2개의 추가작업 그리고 70개의 파일을 삭제
  1. 2 9
      CMakeLists.txt
  2. 0 46
      corefiles.cmake
  3. 0 9
      progfiles.cmake
  4. 0 6
      testfiles.cmake

+ 2 - 9
CMakeLists.txt

@@ -4,21 +4,14 @@
 #library name (name is appended to "nice_" to form the target library name)
 set(the_library "segmentation")
 
-#define variable nice_<libname>_HDR and nice_<libname>_SRC for library header and source files (don't include progs and test source files here)
-include( corefiles.cmake)
-
-#define variable nice_<libname>_PROGFILES_HDR and nice_<libname>_PROGFILES_SRC for program header and source files (don't include library and test source files here)
-include( progfiles.cmake)
-
-#define variable nice_<libname>_TESTFILES_HDR and nice_<libname>_TESTFILES_SRC for unit test header and source files (don't include library and progs source files here)
-include( testfiles.cmake)	
-
 #add linkage dependencies to other libraries here
 set("nice_${the_library}_LINKING_DEPENDENCIES" "nice_core")
 
 #####################################################
 message(STATUS "adding library ${the_library}")
 
+nice_get_source_files()
+
 nice_build_library()
 
 nice_add_progs()

+ 0 - 46
corefiles.cmake

@@ -1,46 +0,0 @@
-SET(nice_segmentation_SRC
-./RSGraphBased.cpp
-./RegionSegmentationMethod.cpp
-./RSMeanShift.cpp
-./RegionGraph.cpp
-./edisonSegm/RAList.cpp
-./edisonSegm/msImageProcessor.cpp
-./edisonSegm/msSys.cpp
-./edisonSegm/rlist.cpp
-./edisonSegm/ms.cpp
-./SLIC/SLIC.cpp
-./math/NodeCentricRepMatrix.cpp
-./RSMarkovCluster.cpp
-./RSSlic.cpp
-./RSCache.cpp
-)
-
-SET(nice_segmentation_HDR
-./RegionSegmentationMethod.h
-./GenericRegionSegmentationMethodSelection.h
-./RSCache.h
-./RSSlic.h
-./RSMeanShift.h
-./RSMarkovCluster.h
-./RSGraphBased.h
-./edisonSegm/RAList.h
-./edisonSegm/msSys.h
-./edisonSegm/ms.h
-./edisonSegm/tdef.h
-./edisonSegm/msImageProcessor.h
-./edisonSegm/rlist.h
-./SLIC/SLIC.h
-./math/NodeCentricRepMatrix.h
-./felzenszwalb/imconv.h
-./felzenszwalb/segment-graph.h
-./felzenszwalb/filter.h
-./felzenszwalb/pnmfile.h
-./felzenszwalb/segment-image.h
-./felzenszwalb/image.h
-./felzenszwalb/misc.h
-./felzenszwalb/imutil.h
-./felzenszwalb/disjoint-set.h
-./felzenszwalb/convolve.h
-./RegionGraph.h
-)
-

+ 0 - 9
progfiles.cmake

@@ -1,9 +0,0 @@
-# find . -name "*.cpp" -ipath "*/progs/*" > progfiles.cmake.t
-set(nice_segmentation_PROGFILES_SRC 
-./progs/testSegmentation.cpp
-./progs/testMarkov.cpp
-./felzenszwalb/segment.cpp
-)
-
-set(nice_segmentation_PROGFILES_HDR
-)

+ 0 - 6
testfiles.cmake

@@ -1,6 +0,0 @@
-#generated by find . -name "*.cpp" -ipath "*/tests/*" > testfiles.cmake.t 
-SET(nice_segmentation_TESTFILES_SRC 
-)
-
-SET(nice_segmentation_TESTFILES_HDR
-)