cmake support: first cut from David Vaz work.i
This commit is contained in:
Submodule packages/R updated: 87bb48410a...3048749364
Submodule packages/clib updated: dc25a433df...55f1b0d765
52
packages/cuda/CMakeLists.txt
Normal file
52
packages/cuda/CMakeLists.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
#CHECK: CUDA
|
||||
macro_optional_find_package (CUDA ON)
|
||||
macro_log_feature (CUDA_FOUND "CUDA"
|
||||
"CUDA GGPU Programming "
|
||||
"http://www.r.org" FALSE)
|
||||
if (CUDA_FOUND)
|
||||
# CUDA_VERSION_MAJOR -- The major version of cuda as reported by nvcc.
|
||||
# CUDA_VERSION_MINOR -- The minor version.
|
||||
# CUDA_VERSION
|
||||
# CUDA_VERSION_STRING -- CUDA_VERSION_MAJOR.CUDA_VERSION_MINOR
|
||||
#
|
||||
# CUDA_TOOLKIT_ROOT_DIR -- Path to the CUDA Toolkit (defined if not set).
|
||||
# CUDA_SDK_ROOT_DIR -- Path to the CUDA SDK. Use this to find files in the
|
||||
# SDK. This script will not directly support finding
|
||||
# specific libraries or headers, as that isn't
|
||||
# supported by NVIDIA. If you want to change
|
||||
# libraries when the path changes see the
|
||||
# FindCUDA.cmake script for an example of how to clear
|
||||
# these variables. There are also examples of how to
|
||||
# use the CUDA_SDK_ROOT_DIR to locate headers or
|
||||
# libraries, if you so choose (at your own risk).
|
||||
# CUDA_INCLUDE_DIRS -- Include directory for cuda headers. Added automatically
|
||||
# for CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY.
|
||||
# CUDA_LIBRARIES -- Cuda RT library.
|
||||
# CUDA_CUFFT_LIBRARIES -- Device or emulation library for the Cuda FFT
|
||||
# implementation (alternative to:
|
||||
# CUDA_ADD_CUFFT_TO_TARGET macro)
|
||||
# CUDA_CUBLAS_LIBRARIES -- Device or emulation library for the Cuda BLAS
|
||||
# implementation (alterative to:
|
||||
# CUDA_ADD_CUBLAS_TO_TARGET macro).
|
||||
# CUDA_cupti_LIBRARY -- CUDA Profiling Tools Interface library.
|
||||
# Only available for CUDA version 4.0+.
|
||||
# CUDA_curand_LIBRARY -- CUDA Random Number Generation library.
|
||||
# Only available for CUDA version 3.2+.
|
||||
# CUDA_cusparse_LIBRARY -- CUDA Sparse Matrix library.
|
||||
# Only available for CUDA version 3.2+.
|
||||
# CUDA_npp_LIBRARY -- NVIDIA Performance Primitives lib.
|
||||
# Only available for CUDA version 4.0+.
|
||||
# CUDA_nppc_LIBRARY -- NVIDIA Performance Primitives lib (core).
|
||||
# Only available for CUDA version 5.5+.
|
||||
# CUDA_nppi_LIBRARY -- NVIDIA Performance Primitives lib (image processing).
|
||||
# Only available for CUDA version 5.5+.
|
||||
# CUDA_npps_LIBRARY -- NVIDIA Performance Primitives lib (signal processing).
|
||||
# Only available for CUDA version 5.5+.
|
||||
# CUDA_nvcuvenc_LIBRARY -- CUDA Video Encoder library.
|
||||
# Only available for CUDA version 3.2+.
|
||||
# Windows only.
|
||||
# CUDA_nvcuvid_LIBRARY -- CUDA Video Decoder library.
|
||||
# Only available for CUDA version 3.2+.
|
||||
# Windows only.
|
||||
endif (CUDA_FOUND)
|
||||
|
||||
18
packages/gecode/CMakeLists.txt
Normal file
18
packages/gecode/CMakeLists.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
#TODO: change macro_log_feature to check both WITH_{$name} and ${name}_FOUND
|
||||
#TODO: improve FindGecode.cmake to be similar to other Find*.cmake
|
||||
#CHECK: GECODE
|
||||
macro_optional_find_package (Gecode ON)
|
||||
macro_log_feature (GECODE_FOUND "libgecode"
|
||||
"Use Generic Constraint Development Environment (GECODE) library"
|
||||
"http://www.gecode.org" FALSE)
|
||||
if (GECODE_FOUND)
|
||||
#DEFINES:
|
||||
# GECODE_INCLUDE_DIR
|
||||
# GECODE_VERSION
|
||||
# GECODE_LIBRARIES
|
||||
|
||||
#set (EXTRALIBS gecode)
|
||||
|
||||
#include_directories (${GECODE_INCLUDE_DIR})
|
||||
#set (EXTRALIBS ${EXTRALIBS} ${GECODE_LIBRARIES})
|
||||
endif (GECODE_FOUND)
|
||||
44
packages/myddas/CMakeLists.txt
Normal file
44
packages/myddas/CMakeLists.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
macro_optional_find_package(ODBC ON)
|
||||
if (ODBC_FOUND)
|
||||
macro_log_feature (ODBC_FOUND "ODBC"
|
||||
"Use ODBC Data-Base Interface "
|
||||
"http://www.odbc.org" FALSE)
|
||||
add_definitions (-DMYDDAS_ODBC=1)
|
||||
set (EXTRALIBS ${EXTRALIBS} ${ODBC_LIBRARY})
|
||||
if (APPLE)
|
||||
set (EXTRALIBS ${EXTRALIBS} "-framework CoreFoundation")
|
||||
endif (APPLE)
|
||||
endif (ODBC_FOUND)
|
||||
|
||||
macro_optional_find_package(MySQL ON)
|
||||
if (MYSQL_FOUND)
|
||||
macro_log_feature (MYSQL_FOUND "MySQL"
|
||||
"Use MYSQL Data-Base Interface "
|
||||
"http://www.odbc.org" FALSE)
|
||||
add_definitions (-DMYDDAS_MYSQL=1)
|
||||
endif (MYSQL_FOUND)
|
||||
|
||||
option (WITH_MYDDAS
|
||||
"enable the MYDDAS library" ON)
|
||||
if (WITH_MYDDAS)
|
||||
if (MYSQL_FOUND)
|
||||
add_definitions (-DMYDDAS_MYSQL=1)
|
||||
endif (MYSQL_FOUND)
|
||||
|
||||
if (MYSQL_FOUND OR ODBC_FOUND)
|
||||
set (EXTRALIBS ${EXTRALIBS} myddas)
|
||||
else (MYSQL_FOUND OR ODBC_FOUND)
|
||||
message(SEND_ERROR "MYDDAS needs either MYSQL or ODBC none where found")
|
||||
endif (MYSQL_FOUND OR ODBC_FOUND)
|
||||
endif (WITH_MYDDAS)
|
||||
|
||||
cmake_dependent_option (WITH_MYDDAS_Stats
|
||||
"enable the MYDDAS library statistics support" OFF
|
||||
WITH_MYDDAS OFF)
|
||||
#TODO:
|
||||
|
||||
cmake_dependent_option (WITH_MYDDAS_top_level
|
||||
"enable the MYDDAS top-level support to MySQL" OFF
|
||||
'WITH_MYDDAS AND MYSQL_FOUND' OFF)
|
||||
#TODO:
|
||||
|
||||
12
packages/prosqlite/CMakeLists.txt
Normal file
12
packages/prosqlite/CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
macro_optional_find_package (Sqlite3 ON)
|
||||
macro_log_feature (SQLITE3_FOUND "sqlite3"
|
||||
"SQLITE3 Light Weight Database Manager"
|
||||
"http://sqlite3.com")
|
||||
if (SQLITE3_FOUND)
|
||||
# SQLITE3_INCLUDE_DIR - Where to find Sqlite 3 header files (directory)
|
||||
# SQLITE3_LIBRARIES - Sqlite 3 libraries
|
||||
# SQLITE3_LIBRARY_RELEASE - Where the release library is
|
||||
# SQLITE3_LIBRARY_DEBUG - Where the debug library is
|
||||
# SQLITE3_FOUND - Set to TRUE if we found everything (library, includes and executable)
|
||||
endif (SQLITE3_FOUND)
|
||||
|
||||
34
packages/python/CMakeLists.txt
Normal file
34
packages/python/CMakeLists.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
#CHECK: PythonLibs
|
||||
macro_optional_find_package(PythonInterp ON)
|
||||
macro_optional_find_package (PythonLibs ON)
|
||||
macro_log_feature (PYTHONLIBS_FOUND "Python"
|
||||
"Use Python System"
|
||||
"http://www.python.org" FALSE)
|
||||
if (PYTHONLIBS_FOUND) # PYTHONLIBS_FOUND - have the Python libs been found
|
||||
# PYTHON_LIBRARIES - path to the python library
|
||||
# PYTHON_INCLUDE_PATH - path to where Python.h is found (deprecated)
|
||||
# PYTHON_INCLUDE_DIRS - path to where Python.h is found
|
||||
# PYTHON_DEBUG_LIBRARIES - path to the debug library (deprecated)
|
||||
# PYTHONLIBS_VERSION_STRING - version of the Python libs found (since CMake 2.8.8)
|
||||
#
|
||||
#
|
||||
#
|
||||
# The Python_ADDITIONAL_VERSIONS variable can be used to specify a list
|
||||
# of version numbers that should be taken into account when searching
|
||||
# for Python. You need to set this variable before calling
|
||||
# find_package(PythonLibs).
|
||||
#
|
||||
# If you'd like to specify the installation of Python to use, you should
|
||||
# modify the following cache variables:
|
||||
#
|
||||
# ::
|
||||
#
|
||||
# PYTHON_LIBRARY - path to the python library
|
||||
# PYTHON_INCLUDE_DIR - path to where Python.h is found
|
||||
#
|
||||
# If also calling find_package(PythonInterp), call find_package(PythonInterp)
|
||||
# first to get the currently active Python version by default with a consistent
|
||||
# version of PYTHON_LIBRARIES.
|
||||
|
||||
|
||||
endif (PYTHONLIBS_FOUND)
|
||||
16
packages/swig/CMakeLists.txt
Normal file
16
packages/swig/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
#CHECK: SWIG
|
||||
macro_optional_find_package (SWIG ON)
|
||||
macro_log_feature (SWIG_FOUND "Swig"
|
||||
"Use SWIG Documentation System "
|
||||
"http://www.swig.org" FALSE)
|
||||
if (SWIG_FOUND)
|
||||
#
|
||||
# SWIG_FOUND - set to true if SWIG is found
|
||||
# SWIG_DIR - the directory where swig is installed
|
||||
# SWIG_EXECUTABLE - the path to the swig executable
|
||||
# SWIG_VERSION - the version number of the swig executable
|
||||
#
|
||||
|
||||
|
||||
endif (SWIG_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user