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
a193b3d3
Unverified
Commit
a193b3d3
authored
May 09, 2018
by
johnforestolson
Committed by
GitHub
May 09, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #117 from PetterS/add_ide_folder
Set the FOLDER property for Abseil targets.
parents
f88b4e9c
e0bb9b56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
CMake/AbseilHelpers.cmake
+11
-0
No files found.
CMake/AbseilHelpers.cmake
View file @
a193b3d3
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
include
(
CMakeParseArguments
)
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
# create a library in the absl namespace
...
@@ -49,6 +54,8 @@ function(absl_library)
...
@@ -49,6 +54,8 @@ function(absl_library)
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_LIB_PUBLIC_INCLUDE_DIRS
}
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_LIB_PUBLIC_INCLUDE_DIRS
}
PRIVATE
${
ABSL_LIB_PRIVATE_INCLUDE_DIRS
}
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
${
ABSL_IDE_FOLDER
}
)
if
(
ABSL_LIB_EXPORT_NAME
)
if
(
ABSL_LIB_EXPORT_NAME
)
add_library
(
absl::
${
ABSL_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
add_library
(
absl::
${
ABSL_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
...
@@ -92,6 +99,8 @@ function(absl_header_library)
...
@@ -92,6 +99,8 @@ function(absl_header_library)
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_HO_LIB_PUBLIC_INCLUDE_DIRS
}
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_HO_LIB_PUBLIC_INCLUDE_DIRS
}
PRIVATE
${
ABSL_HO_LIB_PRIVATE_INCLUDE_DIRS
}
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
${
ABSL_IDE_FOLDER
}
)
if
(
ABSL_HO_LIB_EXPORT_NAME
)
if
(
ABSL_HO_LIB_EXPORT_NAME
)
add_library
(
absl::
${
ABSL_HO_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
add_library
(
absl::
${
ABSL_HO_LIB_EXPORT_NAME
}
ALIAS
${
_NAME
}
)
...
@@ -138,6 +147,8 @@ function(absl_test)
...
@@ -138,6 +147,8 @@ function(absl_test)
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_TEST_PUBLIC_INCLUDE_DIRS
}
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
${
ABSL_TEST_PUBLIC_INCLUDE_DIRS
}
PRIVATE
${
GMOCK_INCLUDE_DIRS
}
${
GTEST_INCLUDE_DIRS
}
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
${
ABSL_IDE_FOLDER
}
)
add_test
(
${
_NAME
}
${
_NAME
}
_bin
)
add_test
(
${
_NAME
}
${
_NAME
}
_bin
)
endif
(
BUILD_TESTING
)
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