Sha256: 0fd931f46f32392f2507ff0ffbdc66c51dc415fe00b72ef44ae3c4776fab1074

Contents?: true

Size: 811 Bytes

Versions: 27

Compression:

Stored size: 811 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_clar 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 ${libgit2_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

27 entries across 27 versions & 1 rubygems

Version Path
rugged-1.3.2.3 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.3.2.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.3.2 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.3.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.3.0 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.2.0 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.1.1 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.1.0 vendor/libgit2/cmake/IdeSplitSources.cmake
rugged-1.0.1 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.5 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-1.0.0 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.99.0 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.27.10.1 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.4.1 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.4 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.27.10 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.3.1 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.27.9 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.2 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
rugged-0.28.1 vendor/libgit2/cmake/Modules/IdeSplitSources.cmake