Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
8325b104
Commit
8325b104
authored
Jul 03, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add libcaf_net to root CMake
parent
79626224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
21 deletions
+26
-21
CMakeLists.txt
CMakeLists.txt
+26
-21
No files found.
CMakeLists.txt
View file @
8325b104
...
...
@@ -332,30 +332,35 @@ include_directories("${CAF_INCLUDE_DIRS}")
macro
(
add_caf_lib name header_only
)
string
(
TOUPPER
${
name
}
upper_name
)
set
(
full_name libcaf_
${
name
}
)
add_subdirectory
(
${
full_name
}
)
# if (NOT header_only)
# set(shared_target ${full_name}_shared)
# set(static_target ${full_name}_static)
# set(lib_varname CAF_LIBRARY_${upper_name})
# set(lib_varname_static ${lib_varname}_STATIC)
# if(NOT CAF_BUILD_STATIC_ONLY)
# set(${lib_varname} ${shared_target})
# set(CAF_LIBRARIES ${CAF_LIBRARIES} ${shared_target})
# else()
# set(${lib_varname} ${static_target})
# set(CAF_LIBRARIES ${CAF_LIBRARIES} ${static_target})
# endif()
# if(CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC)
# set(${lib_varname_static} ${static_target})
# endif()
# endif()
add_unit_tests
(
"
${
full_name
}
/test/*.cpp"
)
# add headers to include directories so other subprojects can use them
include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/libcaf_
${
name
}
"
)
set
(
full_name
"libcaf_
${
name
}
"
)
if
(
NOT EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
full_name
}
"
)
message
(
STATUS
"skip
${
full_name
}
(not found)"
)
else
()
add_subdirectory
(
${
full_name
}
)
if
(
NOT
${
header_only
}
)
set
(
shared_target
${
full_name
}
_shared
)
set
(
static_target
${
full_name
}
_static
)
set
(
lib_varname CAF_LIBRARY_
${
upper_name
}
)
set
(
lib_varname_static
${
lib_varname
}
_STATIC
)
if
(
NOT CAF_BUILD_STATIC_ONLY
)
set
(
${
lib_varname
}
${
shared_target
}
)
set
(
CAF_LIBRARIES
${
CAF_LIBRARIES
}
${
shared_target
}
)
else
()
set
(
${
lib_varname
}
${
static_target
}
)
set
(
CAF_LIBRARIES
${
CAF_LIBRARIES
}
${
static_target
}
)
endif
()
if
(
CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC
)
set
(
${
lib_varname_static
}
${
static_target
}
)
endif
()
endif
()
add_unit_tests
(
"
${
full_name
}
/test/*.cpp"
)
# add headers to include directories so other subprojects can use them
include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/libcaf_
${
name
}
"
)
endif
()
endmacro
()
add_caf_lib
(
bb yes
)
add_caf_lib
(
net no
)
# -- unit tests setup ----------------------------------------------------------
...
...
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