Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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 Framework
Commits
a7774469
Commit
a7774469
authored
Sep 04, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved dependency declarations to subproject CMake files
parent
2f032c19
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
41 deletions
+4
-41
CMakeLists.txt
CMakeLists.txt
+0
-33
examples/CMakeLists.txt
examples/CMakeLists.txt
+3
-8
unit_testing/CMakeLists.txt
unit_testing/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
a7774469
...
...
@@ -233,39 +233,6 @@ add_subdirectory(unit_testing)
add_subdirectory
(
examples
)
add_subdirectory
(
benchmarks
)
# add libcppa as a dependency to all binaries
add_dependencies
(
announce_example_1 libcppa
)
add_dependencies
(
announce_example_2 libcppa
)
add_dependencies
(
announce_example_3 libcppa
)
add_dependencies
(
announce_example_4 libcppa
)
add_dependencies
(
announce_example_5 libcppa
)
add_dependencies
(
dancing_kirby libcppa
)
add_dependencies
(
dining_philosophers libcppa
)
add_dependencies
(
hello_world_example libcppa
)
add_dependencies
(
math_actor_example libcppa
)
add_dependencies
(
actor_creation libcppa
)
add_dependencies
(
mailbox_performance libcppa
)
add_dependencies
(
mixed_case libcppa
)
add_dependencies
(
distributed libcppa
)
add_dependencies
(
matching libcppa
)
add_dependencies
(
distributed_math_actor_example libcppa
)
add_dependencies
(
test__atom libcppa
)
add_dependencies
(
test__intrusive_containers libcppa
)
add_dependencies
(
test__local_group libcppa
)
add_dependencies
(
test__pattern libcppa
)
add_dependencies
(
test__remote_actor libcppa
)
add_dependencies
(
test__serialization libcppa
)
add_dependencies
(
test__uniform_type libcppa
)
add_dependencies
(
test__fixed_vector libcppa
)
add_dependencies
(
test__intrusive_ptr libcppa
)
add_dependencies
(
test__match libcppa
)
add_dependencies
(
test__primitive_variant libcppa
)
add_dependencies
(
test__ripemd_160 libcppa
)
add_dependencies
(
test__spawn libcppa
)
add_dependencies
(
test__type_list libcppa
)
add_dependencies
(
test__yield_interface libcppa
)
add_dependencies
(
test__sync_send libcppa
)
# set optional flags
string
(
TOUPPER
${
CMAKE_BUILD_TYPE
}
build_type
)
set
(
CONTEXT_SWITCHING true
)
...
...
examples/CMakeLists.txt
View file @
a7774469
...
...
@@ -6,20 +6,13 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wextra -Wall -pedantic")
# Set up environment paths to cmake modules and libcppa
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
)
# search for libs
if
(
NOT cppa_LIBRARY
)
find_package
(
Libcppa REQUIRED
)
endif
(
NOT cppa_LIBRARY
)
find_package
(
Boost REQUIRED
)
find_package
(
PTHREAD REQUIRED
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
include_directories
(
.
${
CPPA_INCLUDE
}
${
Boost_INCLUDE_DIRS
}
${
PTHREAD_INCLUDE_DIR
}
)
macro
(
add_example name
)
add_executable
(
${
name
}
${
name
}
.cpp
${
ARGN
}
)
target_link_libraries
(
${
name
}
${
CMAKE_DL_LIBS
}
${
CPPA_LIBRARY
}
${
PTHREAD_LIBRARIES
}
)
add_dependencies
(
${
name
}
libcppa
)
endmacro
()
add_example
(
announce_example_1
)
...
...
@@ -32,3 +25,5 @@ add_example(dining_philosophers)
add_example
(
hello_world_example
)
add_example
(
math_actor_example
)
add_example
(
distributed_math_actor_example
)
add_example
(
group_server
)
add_example
(
group_chat
)
unit_testing/CMakeLists.txt
View file @
a7774469
...
...
@@ -24,6 +24,7 @@ macro(add_unit_test name)
add_executable
(
test__
${
name
}
test__
${
name
}
.cpp
${
ARGN
}
)
target_link_libraries
(
test__
${
name
}
${
EXAMPLE_LIBS
}
${
CMAKE_THREAD_LIBS_INIT
}
)
add_test
(
${
name
}
${
EXECUTABLE_OUTPUT_PATH
}
/test__
${
name
}
)
add_dependencies
(
${
name
}
libcppa
)
endmacro
()
add_unit_test
(
ripemd_160
)
...
...
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