Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
e0bb9b56
Commit
e0bb9b56
authored
May 09, 2018
by
Petter Strandmark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a variable ABSL_IDE_FOLDER in three places.
parent
950be290
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
CMake/AbseilHelpers.cmake
+8
-3
No files found.
CMake/AbseilHelpers.cmake
View file @
e0bb9b56
...
...
@@ -16,6 +16,11 @@
include
(
CMakeParseArguments
)
# The IDE folder for Abseil that will be used if Abseil is included in a CMake
# project that sets
# set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# For example, Visual Studio supports folders.
set
(
ABSL_IDE_FOLDER Abseil
)
#
# create a library in the absl namespace
...
...
@@ -50,7 +55,7 @@ function(absl_library)
PRIVATE
${
ABSL_LIB_PRIVATE_INCLUDE_DIRS
}
)
# Add all Abseil targets to a a folder in the IDE for organization.
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
Abseil
)
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
${
ABSL_IDE_FOLDER
}
)
if
(
ABSL_LIB_EXPORT_NAME
)
add_library
(
absl::
${
ABSL_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
...
...
@@ -95,7 +100,7 @@ function(absl_header_library)
PRIVATE
${
ABSL_HO_LIB_PRIVATE_INCLUDE_DIRS
}
)
# Add all Abseil targets to a a folder in the IDE for organization.
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
Abseil
)
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
${
ABSL_IDE_FOLDER
}
)
if
(
ABSL_HO_LIB_EXPORT_NAME
)
add_library
(
absl::
${
ABSL_HO_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
...
...
@@ -143,7 +148,7 @@ function(absl_test)
PRIVATE
${
GMOCK_INCLUDE_DIRS
}
${
GTEST_INCLUDE_DIRS
}
)
# Add all Abseil targets to a a folder in the IDE for organization.
set_property
(
TARGET
${
_NAME
}
_bin PROPERTY FOLDER
Abseil
)
set_property
(
TARGET
${
_NAME
}
_bin PROPERTY FOLDER
${
ABSL_IDE_FOLDER
}
)
add_test
(
${
_NAME
}
${
_NAME
}
_bin
)
endif
(
BUILD_TESTING
)
...
...
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