Browse Source

cmake: added support for recursive source code usage

Johannes Ruehle 11 years ago
parent
commit
be749b2592
4 changed files with 2 additions and 62 deletions
  1. 2 9
      CMakeLists.txt
  2. 0 32
      corefiles.cmake
  3. 0 15
      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 "semseg")
 
-#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" "nice_vislearning" "nice_gp-hik-core" "nice_segmentation" "nice_gp-hik-exp")
 
 #####################################################
 message(STATUS "adding library ${the_library}")
 
+nice_get_source_files()
+
 nice_build_library()
 
 nice_add_progs()

+ 0 - 32
corefiles.cmake

@@ -1,32 +0,0 @@
-SET(nice_semseg_SRC
-./semseg/SemSegNovelty.cpp
-./semseg/SemSegTools.cpp
-./semseg/operations/Operations.cpp
-./semseg/postsegmentation/PSSImageLevelPrior.cpp
-./semseg/postsegmentation/PPSuperregion.cpp
-./semseg/postsegmentation/RelativeLocationPrior.cpp
-./semseg/postsegmentation/PostSemSeg.cpp
-./semseg/postsegmentation/PPGraphCut.cpp
-./semseg/SemSegCsurka.cpp
-./semseg/SemSegNoveltyBinary.cpp
-./semseg/SemSegContextTree.cpp
-./semseg/SemSegLocal.cpp
-./semseg/SemanticSegmentation.cpp
-)
-
-SET(nice_semseg_HDR
-./semseg/SemSegCsurka.h
-./semseg/SemSegLocal.h
-./semseg/SemSegTools.h
-./semseg/SemSegContextTree.h
-./semseg/operations/Operations.h
-./semseg/postsegmentation/PPSuperregion.h
-./semseg/postsegmentation/PostSemSeg.h
-./semseg/postsegmentation/PSSImageLevelPrior.h
-./semseg/postsegmentation/PPGraphCut.h
-./semseg/postsegmentation/RelativeLocationPrior.h
-./semseg/SemSegNovelty.h
-./semseg/SemSegNoveltyBinary.h
-./semseg/SemanticSegmentation.h
-)
-

+ 0 - 15
progfiles.cmake

@@ -1,15 +0,0 @@
-# find . -name "*.cpp" -ipath "*/progs/*" > progfiles.cmake.t
-set(nice_semseg_PROGFILES_SRC 
-./progs/testActiveSemanticSegmentation.cpp
-./progs/testNICE.cpp
-./progs/testClassifierGMM.cpp
-./progs/testRF.cpp
-./progs/testActiveSemanticSegmentationBinary.cpp
-./progs/testClassifier.cpp
-./progs/testSemanticSegmentation.cpp
-./progs/classtest.cpp
-./progs/getRelevantClasses.cpp
-)
-
-set(nice_semseg_PROGFILES_HDR
-)

+ 0 - 6
testfiles.cmake

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