From 32f9c796f5b30b7bd802c5f1802a94de2b50ec10 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 31 Oct 2012 20:21:19 -0700 Subject: build system work --- python/gras/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 python/gras/CMakeLists.txt (limited to 'python/gras') diff --git a/python/gras/CMakeLists.txt b/python/gras/CMakeLists.txt new file mode 100644 index 0000000..a55d09e --- /dev/null +++ b/python/gras/CMakeLists.txt @@ -0,0 +1,33 @@ +######################################################################## +# Include swig generation macros +######################################################################## +find_package(SWIG) +find_package(PythonLibs) +if(NOT SWIG_FOUND OR NOT PYTHONLIBS_FOUND) + return() +endif() +include(GrSwig) +include(GrPython) +find_package(Boost) #for headers + +######################################################################## +# setup SWIG build +######################################################################## +list(APPEND GR_SWIG_INCLUDE_DIRS ${GRAS_INCLUDE_DIRS}) +list(APPEND GR_SWIG_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}) + +#GR_SWIG_MAKE(${pmc_swig_module} ${pmc_swig_module}.i) +#GR_SWIG_INSTALL( +# TARGETS ${pmc_swig_module} +# DESTINATION ${GR_PYTHON_DIR}/PMC +# COMPONENT ${PMC_COMP_PYTHON} +#) + +######################################################################## +# Install rules +######################################################################## +#GR_PYTHON_INSTALL( +# FILES __init__.py +# DESTINATION ${GR_PYTHON_DIR}/PMC +# COMPONENT ${PMC_COMP_PYTHON} +#) -- cgit