This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other VTK-h | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to VTK-h. | ||
|
||
################################################################ | ||
# don't use BLT's all warnings feature | ||
################################################################ | ||
set(ENABLE_ALL_WARNINGS OFF CACHE BOOL "") | ||
|
||
################################################################ | ||
# if BLT_SOURCE_DIR is not set - use "blt" as default | ||
################################################################ | ||
if(NOT BLT_SOURCE_DIR) | ||
set(BLT_SOURCE_DIR "blt") | ||
endif() | ||
|
||
################################################################ | ||
# if not set, prefer c++11 lang standard | ||
################################################################ | ||
if(NOT BLT_CXX_STD) | ||
set(BLT_CXX_STD "c++11" CACHE STRING "") | ||
endif() | ||
|
||
################################################################ | ||
# if not set, prefer folder grouped targets | ||
################################################################ | ||
if(NOT ENABLE_FOLDERS) | ||
set(ENABLE_FOLDERS TRUE CACHE STRING "") | ||
endif() | ||
|
||
|
||
################################################################ | ||
# init blt using BLT_SOURCE_DIR | ||
################################################################ | ||
include(${BLT_SOURCE_DIR}/SetupBLT.cmake) | ||
|
||
if(ENABLE_MPI) | ||
# on some platforms (mostly cray systems) folks skip mpi | ||
# detection in BLT by setting ENABLE_FIND_MPI = OFF | ||
# in these cases, we need to set FOUND_MPI = TRUE, | ||
# since the rest of our cmake logic to include MPI uses FOUND_MPI | ||
if(NOT ENABLE_FIND_MPI) | ||
set(FOUND_MPI ON CACHE BOOL "") | ||
endif() | ||
endif() | ||
|
||
################################################################ | ||
# apply folders to a few ungrouped blt targets | ||
################################################################ | ||
|
||
############################################### | ||
# group main blt docs targets into docs folder | ||
############################################### | ||
blt_set_target_folder( TARGET docs FOLDER docs) | ||
|
||
if(TARGET sphinx_docs) | ||
blt_set_target_folder( TARGET sphinx_docs FOLDER docs) | ||
endif() | ||
|
||
if(TARGET doxygen_docs) | ||
blt_set_target_folder( TARGET doxygen_docs FOLDER docs) | ||
endif() | ||
|
||
#################################################### | ||
# group top level blt health checks into blt folder | ||
#################################################### | ||
if(TARGET check) | ||
blt_set_target_folder( TARGET check FOLDER blt) | ||
endif() | ||
|
||
if(TARGET style) | ||
blt_set_target_folder( TARGET style FOLDER blt) | ||
endif() |