diff --git a/build_mtree.bat b/build_mtree.bat index d40c321..101a92f 100644 --- a/build_mtree.bat +++ b/build_mtree.bat @@ -1,3 +1,7 @@ py -3.9 m_tree/install.py +COPY ".\m_tree\binaries\Release\m_tree.cp39-win_amd64.pyd" "./m_tree.cp39-win_amd64.pyd" + +PAUSE + diff --git a/build_mtree.osx b/build_mtree.osx index 07b4dcf..b21881a 100755 --- a/build_mtree.osx +++ b/build_mtree.osx @@ -1,3 +1,5 @@ python3 m_tree/install.py +cp ./m_tree/binaries/m_tree.cpython-39-darwin.so ./m_tree.cpython-39-darwin.so + diff --git a/build_mtree.sh b/build_mtree.sh index ce2a9a3..e25604f 100755 --- a/build_mtree.sh +++ b/build_mtree.sh @@ -1,4 +1,5 @@ python3 m_tree/install.py +cp ./m_tree/binaries/m_tree.cpython-39-x86_64-linux-gnu.so ./m_tree.cpython-39-x86_64-linux-gnu.so diff --git a/m_tree/CMakeLists.txt b/m_tree/CMakeLists.txt index 2b09fd2..7101dfd 100644 --- a/m_tree/CMakeLists.txt +++ b/m_tree/CMakeLists.txt @@ -8,8 +8,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_TOOLCHAIN_FILE ./dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries) -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/../) -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/../) +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries) project(m_tree)