Sha256: 0c1725438bac95a6c56627408b81017a88748944b0ff83cc45c0824421e3aeee

Contents?: true

Size: 812 Bytes

Versions: 13

Compression:

Stored size: 812 Bytes

Contents

# This function splits the sources files up into their appropriate
# subdirectories.  This is especially useful for IDEs like Xcode and
# Visual Studio, so that you can navigate into the libgit2_tests project,
# and see the folders within the tests folder (instead of just seeing all
# source and tests in a single folder.)
function(IDE_SPLIT_SOURCES target)
	if(MSVC_IDE OR CMAKE_GENERATOR STREQUAL Xcode)
		get_target_property(sources ${target} SOURCES)
		foreach(source ${sources})
			if(source MATCHES ".*/")
				string(REPLACE ${PROJECT_SOURCE_DIR}/ "" rel ${source})
				if(rel)
					string(REGEX REPLACE "/([^/]*)$" "" rel ${rel})
					if(rel)
						string(REPLACE "/" "\\\\" rel ${rel})
						source_group(${rel} FILES ${source})
					endif()
				endif()
			endif()
		endforeach()
	endif()
endfunction()

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rugged-1.9.0 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.7.2 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.6.5 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.7.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.6.3 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.6.2 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.5.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.4.5 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.5.0.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.5.0 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.4.4 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.4.3 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.4.2 vendor/libgit2/cmake/IdeSplitSources.cmake