mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
chg, cmake woodo. almost there
This commit is contained in:
parent
748c077268
commit
e7230fa5d7
1 changed files with 12 additions and 5 deletions
|
@ -37,7 +37,6 @@ 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)
|
||||||
|
|
||||||
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
@ -190,7 +189,6 @@ add_custom_command(
|
||||||
|
|
||||||
set(ADDITIONAL_SRC "")
|
set(ADDITIONAL_SRC "")
|
||||||
set(ADDITIONAL_LNK "")
|
set(ADDITIONAL_LNK "")
|
||||||
|
|
||||||
set(X86_CPUS x86 x86_64 i686)
|
set(X86_CPUS x86 x86_64 i686)
|
||||||
|
|
||||||
message(STATUS "CMAKE_SYSTEM_PROCESSOR := ${CMAKE_SYSTEM_PROCESSOR}")
|
message(STATUS "CMAKE_SYSTEM_PROCESSOR := ${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
|
@ -229,10 +227,19 @@ endif (BLUEZ_FOUND)
|
||||||
if (PYTHON3_FOUND)
|
if (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")
|
||||||
# include_directories ( ${PYTHON_INCLUDE_DIRS} )
|
|
||||||
set(ADDITIONAL_LNK python3 ${PYTHON_LIBRARIES})
|
|
||||||
endif (PYTHON3_FOUND)
|
|
||||||
|
|
||||||
|
#PYTHON3_LIBRARIES ... only the libraries (w/o the '-l')
|
||||||
|
#PYTHON3_LIBRARY_DIRS ... the paths of the libraries (w/o the '-L')
|
||||||
|
#PYTHON3_INCLUDE_DIRS ... the '-I' preprocessor flags (w/o the '-I')
|
||||||
|
|
||||||
|
message(STATUS "PYTHON3 LIBS := ${PYTHON3_LIBRARIES}")
|
||||||
|
message(STATUS "PYTHON3 INC DIRS := ${PYTHON3_INCLUDE_DIRS}")
|
||||||
|
|
||||||
|
set(ADDITIONAL_LNK ${ADDITIONAL_LNK} ${PYTHON3_LIBRARIES})
|
||||||
|
|
||||||
|
#PYTHONINCLUDES = pkg-config --cflags python3 == -I/usr/include/python3.6m -I/usr/include/x86_64-linux-gnu/python3.6m
|
||||||
|
#PYTHONLDLIBS = pkg-config --libs python3 == -lpython3.6m
|
||||||
|
endif (PYTHON3_FOUND)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
proxmark3
|
proxmark3
|
||||||
|
|
Loading…
Reference in a new issue