Skip to content

Commit

Permalink
Updated lib_pyhton's .gitignore and CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Oct 29, 2020
1 parent fb76395 commit 481e5d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/lib_python/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__init__.py
__init__.py
pybind11
14 changes: 8 additions & 6 deletions src/lib_python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ set(VIZDOOM_PYTHON_SRC_DIR ${VIZDOOM_SRC_DIR}/lib_python)
set(VIZDOOM_PYTHON_INCLUDE_DIR ${VIZDOOM_INCLUDE_DIR} ${VIZDOOM_PYTHON_SRC_DIR})

# Get pybind11
include(GitUtils)
git_clone(PROJECT_NAME pybind11
GIT_URL https://github.com/pybind/pybind11.git
#GIT_BRANCH master # To use master version
GIT_TAG ${PYBIND11_VERSION}
DIRECTORY ${VIZDOOM_PYTHON_SRC_DIR})
if(NOT EXISTS ${VIZDOOM_PYTHON_SRC_DIR}/pybind11)
include(GitUtils)
git_clone(PROJECT_NAME pybind11
GIT_URL https://github.com/pybind/pybind11.git
#GIT_BRANCH master # To use master version
GIT_TAG ${PYBIND11_VERSION}
DIRECTORY ${VIZDOOM_PYTHON_SRC_DIR})
endif()
add_subdirectory(${VIZDOOM_PYTHON_SRC_DIR}/pybind11)

set(VIZDOOM_PYTHON_LIBS
Expand Down

0 comments on commit 481e5d8

Please sign in to comment.