Created
April 3, 2018 19:29
-
-
Save robertmaynard/aeaedcee2bb1b6869bfe426680f88aa5 to your computer and use it in GitHub Desktop.
cmake_reddit
This file contains hidden or 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
if (NOT DEFINED PROJ_INSTALL_INCLUDE_DIR) | |
set(PROJ_INSTALL_INCLUDE_DIR "include/vtkm-${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}") | |
endif() | |
if (NOT DEFINED PROJ_INSTALL_CONFIG_DIR) | |
set(PROJ_INSTALL_CONFIG_DIR "lib/cmake/vtkm-${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}") | |
endif() | |
if (NOT DEFINED PROJ_INSTALL_LIB_DIR) | |
set(PROJ_INSTALL_LIB_DIR "lib") | |
endif() | |
if (NOT DEFINED PROJ_INSTALL_BIN_DIR) | |
set(PROJ_INSTALL_BIN_DIR "bin") | |
endif() | |
if (NOT DEFINED PROJ_INSTALL_SHARE_DIR) | |
set(PROJ_INSTALL_SHARE_DIR "share/vtkm-${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}") | |
endif() | |
if (NOT DEFINED PROJ_INSTALL_CMAKE_MODULE_DIR) | |
set(PROJ_INSTALL_CMAKE_MODULE_DIR "${PROJ_INSTALL_SHARE_DIR}/cmake") | |
endif() | |
if (NOT DEFINED PROJ_BUILD_CMAKE_BASE_DIR) | |
set(PROJ_BUILD_CMAKE_BASE_DIR "${PROJ_BINARY_DIR}") | |
endif () |
This file contains hidden or 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
macro (proj_option variable) | |
if (NOT DEFINED "${variable}") | |
option("${variable}" ${ARGN}) | |
endif () | |
endmacro () | |
# Configurable Options | |
proj_option(PROJ_ENABLE_CUDA "Enable Cuda support" OFF) | |
proj_option(PROJ_ENABLE_TBB "Enable TBB support" OFF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment