Prechádzať zdrojové kódy

cmake: added support for recursive source code scan

Johannes Ruehle 11 rokov pred
rodič
commit
0393390ac4
4 zmenil súbory, kde vykonal 2 pridanie a 54 odobranie
  1. 2 9
      CMakeLists.txt
  2. 0 8
      corefiles.cmake
  3. 0 29
      progfiles.cmake
  4. 0 8
      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 "gp-hik-exp")
 
-#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")
 
 #####################################################
 message(STATUS "adding library ${the_library}")
 
+nice_get_source_files()
+
 nice_build_library()
 
 nice_add_progs()

+ 0 - 8
corefiles.cmake

@@ -1,8 +0,0 @@
-SET(nice_gp-hik-exp_SRC
-./GPHIKClassifierNICE.cpp
-)
-
-SET(nice_gp-hik-exp_HDR
-./GPHIKClassifierNICE.h
-)
-

+ 0 - 29
progfiles.cmake

@@ -1,29 +0,0 @@
-# find . -name "*.cpp" -ipath "*/progs/*" > progfiles.cmake.t
-set(nice_gp-hik-exp_PROGFILES_SRC 
-./progs/eccv2012-synthetic.cpp
-./progs/testImageNetBinary.cpp
-./progs/eccv2012-15scenes.cpp
-./progs/testFPClassifier.cpp
-./progs/saveImageNetBinary.cpp
-./progs/compressObjectBankFeatures.cpp
-./progs/computeLocalFeatures.cpp
-./progs/IL_AL_Binary_GPBaseline.cpp
-./progs/activeLearningCheckerBoard.cpp
-./progs/eccv2012-AwA.cpp
-./progs/IL_NewExamples_Comparison.cpp
-./progs/bovizeObjectBankFeatures.cpp
-./progs/IL_NewExamples.cpp
-./progs/computeSIFTFeatures.cpp
-./progs/IL_AL_Binary.cpp
-./progs/eccv2012-15scenes-fasthik.cpp
-./progs/testImageNetMedian.cpp
-./progs/testLinsolvers.cpp
-./progs/computeNormalizedHistogramFeatures.cpp
-./progs/testImageNetBinaryGPBaseline.cpp
-./progs/testLogDetApproximation.cpp
-./progs/IL_AL.cpp
-)
-
-set(nice_gp-hik-exp_PROGFILES_HDR
-./progs/datatools.h
-)

+ 0 - 8
testfiles.cmake

@@ -1,8 +0,0 @@
-#generated by find . -name "*.cpp" -ipath "*/tests/*" > testfiles.cmake.t 
-SET(nice_gp-hik-exp_TESTFILES_SRC 
-./tests/TestGPHIKClassifier.cpp
-)
-
-SET(nice_gp-hik-exp_TESTFILES_HDR
-./tests/TestGPHIKClassifier.h
-)