Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cppdap
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
cppdap
Commits
cc7b68a3
Commit
cc7b68a3
authored
Dec 02, 2019
by
Ben Clayton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt: Make it easier to control options from dependee projects.
parent
dc3b3eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
CMakeLists.txt
CMakeLists.txt
+14
-8
No files found.
CMakeLists.txt
View file @
cc7b68a3
...
...
@@ -22,14 +22,20 @@ project(cppdap C CXX)
###########################################################
# Options
###########################################################
option
(
CPPDAP_WARNINGS_AS_ERRORS
"Treat warnings as errors"
OFF
)
option
(
CPPDAP_BUILD_EXAMPLES
"Build example applications"
OFF
)
option
(
CPPDAP_BUILD_TESTS
"Build tests"
OFF
)
option
(
CPPDAP_ASAN
"Build dap with address sanitizer"
OFF
)
option
(
CPPDAP_MSAN
"Build dap with memory sanitizer"
OFF
)
option
(
CPPDAP_TSAN
"Build dap with thread sanitizer"
OFF
)
option
(
CPPDAP_INSTALL_VSCODE_EXAMPLES
"Build and install dap examples into vscode extensions directory"
OFF
)
option
(
CPPDAP_INSTALL
"Create dap install target"
OFF
)
function
(
option_if_not_defined name description default
)
if
(
NOT DEFINED
${
name
}
)
option
(
${
name
}
${
description
}
${
default
}
)
endif
()
endfunction
()
option_if_not_defined
(
CPPDAP_WARNINGS_AS_ERRORS
"Treat warnings as errors"
OFF
)
option_if_not_defined
(
CPPDAP_BUILD_EXAMPLES
"Build example applications"
OFF
)
option_if_not_defined
(
CPPDAP_BUILD_TESTS
"Build tests"
OFF
)
option_if_not_defined
(
CPPDAP_ASAN
"Build dap with address sanitizer"
OFF
)
option_if_not_defined
(
CPPDAP_MSAN
"Build dap with memory sanitizer"
OFF
)
option_if_not_defined
(
CPPDAP_TSAN
"Build dap with thread sanitizer"
OFF
)
option_if_not_defined
(
CPPDAP_INSTALL_VSCODE_EXAMPLES
"Build and install dap examples into vscode extensions directory"
OFF
)
option_if_not_defined
(
CPPDAP_INSTALL
"Create dap install target"
OFF
)
###########################################################
# Directories
...
...
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