mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	examples: C/C++ examples use transitive dependencies
Updated the examples to comprehend transitive dependencies.  This means
that each example target will no longer have a giant list of -I includes
(the examples at the end of the list had includes for all previous
examples, upwards of 200 -I's on the command line).
    * Created a CMakeLists.txt in the upm/examples directory, moved
      common functionality to this level.
    * C/C++ examples now look to the filename for their dependency
      target name, ie; gas-mq2.cxx adds a dependency to the 'gas' target
    * Updated a handful of C/C++ example names to reflect this
    * Example CMake flow - glob the list of files, add targets for any
      special case examples, then att targets for all the rest
Signed-off-by: Noel Eck <noel.eck@intel.com>
			
			
This commit is contained in:
		@@ -419,18 +419,11 @@ set (UPM_COMMON_HEADER_DIRS
 | 
			
		||||
    ${CMAKE_HOME_DIRECTORY}/include
 | 
			
		||||
    ${CMAKE_HOME_DIRECTORY}/include/fti)
 | 
			
		||||
 | 
			
		||||
# UPM source
 | 
			
		||||
add_subdirectory (src)
 | 
			
		||||
if(BUILDEXAMPLES)
 | 
			
		||||
  add_subdirectory (examples/c)
 | 
			
		||||
  if(BUILDCPP)
 | 
			
		||||
    add_subdirectory (examples/c++)
 | 
			
		||||
  endif(BUILDCPP)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
# Build java examples
 | 
			
		||||
if(BUILDSWIGJAVA AND BUILDEXAMPLES)
 | 
			
		||||
  add_subdirectory (examples/java)
 | 
			
		||||
endif()
 | 
			
		||||
# UPM examples
 | 
			
		||||
add_subdirectory (examples)
 | 
			
		||||
 | 
			
		||||
# Python interp is previously found if BUILDTESTS=ON
 | 
			
		||||
if (BUILDTESTS)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user