forked from Laiser/pynbiobsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adição do cmakelist e atualização das funções da lib
- Loading branch information
Showing
6 changed files
with
165 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# CMakeList.txt: projeto de CMake para teste_sensor_bio, incluir origem e definir | ||
# lógica específica a um projeto aqui. | ||
|
||
cmake_minimum_required (VERSION 3.8) | ||
|
||
project ("pynviobsp") | ||
|
||
|
||
include_directories(${PROJECT_SOURCE_DIR}/include) | ||
|
||
|
||
add_library(NBioBSP SHARED IMPORTED) | ||
set_property(TARGET NBioBSP PROPERTY IMPORTED_IMPLIB "C:\\Program Files\\NITGEN eNBSP x64\\SDK\\Lib\\x64\\NBioBSP.lib") | ||
|
||
# Generate Python module | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
pybind11 | ||
GIT_REPOSITORY https://github.com/pybind/pybind11 | ||
GIT_TAG v2.10.0 | ||
) | ||
|
||
FetchContent_GetProperties(pybind11) | ||
if(NOT pybind11_POPULATED) | ||
FetchContent_Populate(pybind11) | ||
add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR}) | ||
endif() | ||
|
||
pybind11_add_module(pynbiobsp "src/main.cpp") | ||
|
||
target_link_libraries(pynbiobsp PRIVATE NBioBSP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef _NBioAPI_CHECK_SIGNED_DLL_H | ||
#define _NBioAPI_CHECK_SIGNED_DLL_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
NBioAPI_RETURN NBioAPI_CheckValidity(LPCTSTR szModulePath); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif//_NBioAPI_CHECK_SIGNED_DLL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.poetry] | ||
name = "pynbiobsp" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
pybind11 = "^2.10.0" | ||
setuptools = "^65.2.0" | ||
wheel = "^0.37.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |