Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cmake
cmake-library
Commits
408906cf
Commit
408906cf
authored
Dec 02, 2020
by
Max Lyon
Browse files
add MSVCMacros
parent
840a1427
Pipeline
#16064
failed with stage
in 5 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
VCI/ACGCommon.cmake
View file @
408906cf
include
(
MSVCMacros
)
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/
${
CMAKE_PROJECT_NAME
}
.cmake
)
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/
${
CMAKE_PROJECT_NAME
}
.cmake
)
include
(
${
CMAKE_SOURCE_DIR
}
/
${
CMAKE_PROJECT_NAME
}
.cmake
)
include
(
${
CMAKE_SOURCE_DIR
}
/
${
CMAKE_PROJECT_NAME
}
.cmake
)
endif
()
endif
()
...
...
VCI/MSVCMacros.cmake
0 → 100755
View file @
408906cf
if
(
MSVC_MACROS_INCLUDED
)
return
()
endif
(
MSVC_MACROS_INCLUDED
)
set
(
MSVC_MACROS_INCLUDED TRUE
)
set
(
MSVC_GROUPING ON CACHE BOOL
"Group Files by folder structure on MSVC."
)
# Enable project folders to group targets in solution folders on MSVC.
if
(
${
MSVC_GROUPING
}
)
set_property
(
GLOBAL PROPERTY USE_FOLDERS ON
)
endif
(
${
MSVC_GROUPING
}
)
MACRO
(
GROUP_PROJECT targetname groupname
)
if
(
${
MSVC_GROUPING
}
)
set_target_properties
(
${
targetname
}
PROPERTIES
FOLDER
"
${
groupname
}
"
)
endif
(
${
MSVC_GROUPING
}
)
ENDMACRO
(
GROUP_PROJECT
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment