mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
cmake support python < 3.8 and 3.8
This commit is contained in:
parent
0464fd476b
commit
8498c32a78
1 changed files with 10 additions and 4 deletions
|
@ -38,6 +38,7 @@ endforeach()
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_search_module(BLUEZ QUIET bluez)
|
pkg_search_module(BLUEZ QUIET bluez)
|
||||||
pkg_search_module(PYTHON3 QUIET python3)
|
pkg_search_module(PYTHON3 QUIET python3)
|
||||||
|
pkg_search_module(PYTHON3EMBED QUIET python3-embed)
|
||||||
|
|
||||||
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
|
@ -225,12 +226,17 @@ if (BLUEZ_FOUND)
|
||||||
set(ADDITIONAL_LNK bluetooth ${ADDITIONAL_LNK})
|
set(ADDITIONAL_LNK bluetooth ${ADDITIONAL_LNK})
|
||||||
endif (BLUEZ_FOUND)
|
endif (BLUEZ_FOUND)
|
||||||
|
|
||||||
if (PYTHON3_FOUND)
|
if (PYTHON3EMBED_FOUND)
|
||||||
message("Python3 library found, building with python3 support :)")
|
message("Python3 library found, building with python3 support :)")
|
||||||
add_definitions("-DHAVE_PYTHON")
|
add_definitions("-DHAVE_PYTHON")
|
||||||
set(ADDITIONAL_DIRS ${ADDITIONAL_DIRS} ${PYTHON3_INCLUDE_DIRS})
|
set(ADDITIONAL_DIRS ${PYTHON3EMBED_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||||
set(ADDITIONAL_LNK ${ADDITIONAL_LNK} ${PYTHON3_LIBRARIES})
|
set(ADDITIONAL_LNK ${PYTHON3EMBED_LIBRARIES} ${ADDITIONAL_LNK})
|
||||||
endif (PYTHON3_FOUND)
|
elseif (PYTHON3_FOUND)
|
||||||
|
message("Python3 library found, building with python3 support :)")
|
||||||
|
add_definitions("-DHAVE_PYTHON")
|
||||||
|
set(ADDITIONAL_DIRS ${PYTHON3_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||||
|
set(ADDITIONAL_LNK ${PYTHON3_LIBRARIES} ${ADDITIONAL_LNK})
|
||||||
|
endif (PYTHON3EMBED_FOUND)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
proxmark3
|
proxmark3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue