mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-08 17:18:10 +08:00
attempt to fix cmake+osx+python
This commit is contained in:
parent
8498c32a78
commit
25c5eebfcf
1 changed files with 4 additions and 0 deletions
|
@ -231,11 +231,13 @@ if (PYTHON3EMBED_FOUND)
|
||||||
add_definitions("-DHAVE_PYTHON")
|
add_definitions("-DHAVE_PYTHON")
|
||||||
set(ADDITIONAL_DIRS ${PYTHON3EMBED_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
set(ADDITIONAL_DIRS ${PYTHON3EMBED_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||||
set(ADDITIONAL_LNK ${PYTHON3EMBED_LIBRARIES} ${ADDITIONAL_LNK})
|
set(ADDITIONAL_LNK ${PYTHON3EMBED_LIBRARIES} ${ADDITIONAL_LNK})
|
||||||
|
set(ADDITIONAL_LNKDIRS ${PYTHON3EMBED_LIBRARY_DIRS} ${ADDITIONAL_LNKDIRS})
|
||||||
elseif (PYTHON3_FOUND)
|
elseif (PYTHON3_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 ${PYTHON3_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
set(ADDITIONAL_DIRS ${PYTHON3_INCLUDE_DIRS} ${ADDITIONAL_DIRS})
|
||||||
set(ADDITIONAL_LNK ${PYTHON3_LIBRARIES} ${ADDITIONAL_LNK})
|
set(ADDITIONAL_LNK ${PYTHON3_LIBRARIES} ${ADDITIONAL_LNK})
|
||||||
|
set(ADDITIONAL_LNKDIRS ${PYTHON3_LIBRARY_DIRS} ${ADDITIONAL_LNKDIRS})
|
||||||
endif (PYTHON3EMBED_FOUND)
|
endif (PYTHON3EMBED_FOUND)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
|
@ -300,6 +302,8 @@ target_link_libraries(proxmark3 PRIVATE
|
||||||
pm3rrg_rdv4_whereami
|
pm3rrg_rdv4_whereami
|
||||||
${ADDITIONAL_LNK})
|
${ADDITIONAL_LNK})
|
||||||
|
|
||||||
|
target_link_directories(proxmark3 PRIVATE ${ADDITIONAL_LNKDIRS})
|
||||||
|
|
||||||
install(TARGETS proxmark3 DESTINATION "bin")
|
install(TARGETS proxmark3 DESTINATION "bin")
|
||||||
install(DIRECTORY cmdscripts lualibs luascripts pyscripts resources dictionaries DESTINATION "share/proxmark3")
|
install(DIRECTORY cmdscripts lualibs luascripts pyscripts resources dictionaries DESTINATION "share/proxmark3")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue