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
3f3b9a39
Commit
3f3b9a39
authored
Nov 04, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added --no-examples and --no-unit-tests options
parent
27d75ca3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
14 deletions
+38
-14
CMakeLists.txt
CMakeLists.txt
+30
-14
configure
configure
+8
-0
No files found.
CMakeLists.txt
View file @
3f3b9a39
...
@@ -228,16 +228,16 @@ else ()
...
@@ -228,16 +228,16 @@ else ()
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_SOURCE_DIR
}
/bin CACHE PATH
"Single directory for all executables"
)
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_SOURCE_DIR
}
/bin CACHE PATH
"Single directory for all executables"
)
endif
()
endif
()
enable_testing
()
# set up subdirectories
# set up subdirectories
add_subdirectory
(
unit_testing
)
if
(
NOT
"
${
CPPA_NO_UNIT_TESTS
}
"
STREQUAL
"yes"
)
add_subdirectory
(
examples
)
add_subdirectory
(
unit_testing
)
add_subdirectory
(
benchmarks
)
add_dependencies
(
all_unit_tests libcppa
)
enable_testing
()
add_dependencies
(
all_examples libcppa
)
endif
()
add_dependencies
(
all_unit_tests libcppa
)
if
(
NOT
"
${
CPPA_NO_EXAMPLES
}
"
STREQUAL
"yes"
)
add_dependencies
(
all_benchmarks libcppa
)
add_subdirectory
(
examples
)
add_dependencies
(
all_examples libcppa
)
endif
()
# set optional flags
# set optional flags
string
(
TOUPPER
${
CMAKE_BUILD_TYPE
}
build_type
)
string
(
TOUPPER
${
CMAKE_BUILD_TYPE
}
build_type
)
...
@@ -274,11 +274,25 @@ if (CPPA_LOG_LEVEL)
...
@@ -274,11 +274,25 @@ if (CPPA_LOG_LEVEL)
endif
()
endif
()
endif
(
CPPA_LOG_LEVEL
)
endif
(
CPPA_LOG_LEVEL
)
if
(
ENABLE_DEBUG
)
macro
(
toYesNo in out
)
set
(
DEBUG_MODE_STR
"yes"
)
if
(
${
in
}
)
else
(
ENABLE_DEBUG
)
set
(
${
out
}
"yes"
)
set
(
DEBUG_MODE_STR
"no"
)
else
()
endif
(
ENABLE_DEBUG
)
set
(
${
out
}
"no"
)
endif
()
endmacro
()
macro
(
invertYesNo in out
)
if
(
"
${
in
}
"
STREQUAL
"yes"
)
set
(
${
out
}
"no"
)
else
()
set
(
${
out
}
"yes"
)
endif
()
endmacro
()
toYesNo
(
ENABLE_DEBUG DEBUG_MODE_STR
)
invertYesNo
(
CPPA_NO_EXAMPLES BUILD_EXAMPLES
)
invertYesNo
(
CPPA_NO_UNIT_TESTS BUILD_UNIT_TESTS
)
# done (print summary)
# done (print summary)
message
(
"
\n
====================| Build Summary |===================="
message
(
"
\n
====================| Build Summary |===================="
...
@@ -289,6 +303,8 @@ message("\n====================| Build Summary |===================="
...
@@ -289,6 +303,8 @@ message("\n====================| Build Summary |===================="
"
\n
Debug mode:
${
DEBUG_MODE_STR
}
"
"
\n
Debug mode:
${
DEBUG_MODE_STR
}
"
"
\n
Log level:
${
LOG_LEVEL_STR
}
"
"
\n
Log level:
${
LOG_LEVEL_STR
}
"
"
\n
Context switching:
${
CONTEXT_SWITCHING
}
"
"
\n
Context switching:
${
CONTEXT_SWITCHING
}
"
"
\n
Build examples:
${
BUILD_EXAMPLES
}
"
"
\n
Build unit tests:
${
BUILD_UNIT_TESTS
}
"
"
\n
"
"
\n
"
"
\n
CXX:
${
CMAKE_CXX_COMPILER
}
"
"
\n
CXX:
${
CMAKE_CXX_COMPILER
}
"
"
\n
CXXFLAGS:
${
CMAKE_CXX_FLAGS
}
${
CMAKE_CXX_FLAGS_
${
build_type
}}
"
"
\n
CXXFLAGS:
${
CMAKE_CXX_FLAGS
}
${
CMAKE_CXX_FLAGS_
${
build_type
}}
"
...
...
configure
View file @
3f3b9a39
...
@@ -29,6 +29,8 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -29,6 +29,8 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--with-clang=FILE path to clang++ executable
--with-clang=FILE path to clang++ executable
--with-gcc=FILE path to g++ executable
--with-gcc=FILE path to g++ executable
--dual-build build both with gcc and clang
--dual-build build both with gcc and clang
--no-examples build libcppa without examples
--no-unit-tests build libcppa without unit tests
Installation Directories:
Installation Directories:
--prefix=PREFIX installation directory [/usr/local]
--prefix=PREFIX installation directory [/usr/local]
...
@@ -206,6 +208,12 @@ while [ $# -ne 0 ]; do
...
@@ -206,6 +208,12 @@ while [ $# -ne 0 ]; do
--dual-build
)
--dual-build
)
dualbuild
=
1
dualbuild
=
1
;;
;;
--no-examples
)
append_cache_entry CPPA_NO_EXAMPLES STRING
yes
;;
--no-unit-tests
)
append_cache_entry CPPA_NO_UNIT_TESTS STRING
yes
;;
*
)
*
)
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
exit
1
exit
1
...
...
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