CMakeLists.txt 447 B

1234567891011121314
  1. cmake_minimum_required(VERSION 3.14)
  2. project(mcell)
  3. set(PYBIND11_PYTHON_VERSION 3.5)
  4. find_package(Python3 ${PYBIND11_PYTHON_VERSION} EXACT REQUIRED COMPONENTS Interpreter Development)
  5. message("-- Python3 include dirs are ${Python3_INCLUDE_DIRS}")
  6. include_directories(${Python3_INCLUDE_DIRS})
  7. add_subdirectory(${CMAKE_SOURCE_DIR}/../../libs/pybind11 ${CMAKE_CURRENT_BINARY_DIR}/libs/pybind11)
  8. pybind11_add_module(mcell MODULE
  9. test.cpp
  10. )