mirror of
https://github.com/open62541/open62541.git
synced 2026-10-19 06:21:12 +08:00
4ab419345e
* Added visual studio solution folders * Added solution folders for examples and lint
12 lines
525 B
CMake
12 lines
525 B
CMake
function(assign_source_group)
|
|
foreach(_source IN ITEMS ${ARGN})
|
|
if (IS_ABSOLUTE "${_source}")
|
|
file(RELATIVE_PATH _source_rel "${CMAKE_CURRENT_SOURCE_DIR}" "${_source}")
|
|
else()
|
|
set(source_rel "${_source}")
|
|
endif()
|
|
get_filename_component(_source_path "${_source_rel}" PATH)
|
|
string(REPLACE "/" "\\" _source_path_msvc "${_source_path}")
|
|
source_group("${_source_path_msvc}" FILES "${_source}")
|
|
endforeach()
|
|
endfunction(assign_source_group) |