-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regroup find_package calls in top level CMakeLists.
- Loading branch information
Showing
3 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
#============================================================================= | ||
# Setup examples | ||
#============================================================================= | ||
add_custom_target(example COMMENT "Build all the examples.") | ||
add_custom_target(examples COMMENT "Build all the examples.") | ||
|
||
function(mpl11_add_example name sources) | ||
add_executable(${name} ${sources}) | ||
add_dependencies(example ${name}) | ||
add_dependencies(examples ${name}) | ||
endfunction() | ||
|
||
|
||
#============================================================================= | ||
# Setup examples requiring Boost | ||
#============================================================================= | ||
find_package(Boost QUIET) | ||
if (NOT Boost_FOUND) | ||
message(STATUS "Boost headers were not found. Some examples won't be available.") | ||
else() | ||
|
||
endif() |