Skip to content

Commit

Permalink
cleaned up for pull request #15
Browse files Browse the repository at this point in the history
  • Loading branch information
crvs committed Jun 13, 2018
1 parent 0dc13f8 commit dcf3100
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
39 changes: 0 additions & 39 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,42 +100,3 @@ add_custom_target(timing_test
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/run_dumb_tests.sh" "1"
DEPENDS yamltest qhull2ply "test/run_dumb_tests.sh" "test/dumbexample.yaml")

# this compiles it against python 2.7
#find_package(PythonInterp REQUIRED)
#find_package(PythonLibs REQUIRED)
#find_package(Boost REQUIRED COMPONENTS python3)

#set(PYTHON_INCLUDE_DIRS /usr/include/python3.6m )
#set(PYTHON_LIBRARIES /usr/lib/libpython3.6m.so /usr/lib/libpython3.6m.so.1.0 /usr/lib/libpython3.so)

#include_directories(${PYTHON_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
#link_directories(${Boost_LIBRARY_DIR})

#message(STATUS "python version: ${PYTHON_VERSION} ")
#message(STATUS "python dirs: ${PYTHON_INCLUDE_DIRS}")
#message(STATUS "python libs: ${PYTHON_LIBRARIES}")
#message(STATUS "boost dirs: ${Boost_INCLUDE_DIRS}")

find_package(pybind11 REQUIRED)
add_library(coeffflow MODULE python/bindings.cpp)
target_link_libraries(coeffflow PRIVATE scomplex pybind11::module)

set_target_properties(coeffflow PROPERTIES PREFIX "" SUFFIX .so)

#set_target_properties(coeffflow PROPERTIES SUFFIX .so)
#set_target_properties(coeffflow PROPERTIES PREFIX "")

#target_link_libraries(coeffflow "python2.7" "boost_python" ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} scomplex)


# This should really work, but it doesnt
#set(Python_ADDITIONAL_VERSIONS 3.6)
#find_package(PythonLibs REQUIRED)
#
#set(PYTHON_INCLUDE_DIR /usr/include/python3.6m)
#set(PYTHON_LIBRARY libpython3.6m.so libpython3.6m.so.1.0 libpython3.so)
#
#include_directories(${PYTHON_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
#python_add_module(coeffflow python/bindings.cpp)
#target_link_libraries(coeffflow "boost_python3" "python3.6m" ${Boost_LIBRARIES} ${PYTHON_LIBRARY} scomplex)
#
20 changes: 0 additions & 20 deletions python/bindings.cpp

This file was deleted.

0 comments on commit dcf3100

Please sign in to comment.