mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
cmake: rework includes, wip, need to modify more src after merge
This commit is contained in:
parent
f32974bb07
commit
dc6b751ea3
6 changed files with 18 additions and 20 deletions
|
@ -64,24 +64,6 @@ endif(NOT AVX512_FOUND)
|
||||||
|
|
||||||
add_subdirectory(deps)
|
add_subdirectory(deps)
|
||||||
|
|
||||||
include_directories(
|
|
||||||
..
|
|
||||||
SYSTEM
|
|
||||||
deps
|
|
||||||
../common
|
|
||||||
../include
|
|
||||||
deps/jansson
|
|
||||||
deps/tinycbor
|
|
||||||
deps/liblua
|
|
||||||
client/deps/mbedtls/include
|
|
||||||
deps/amiitool
|
|
||||||
deps/cliparser
|
|
||||||
deps/reveng
|
|
||||||
../common/zlib
|
|
||||||
src
|
|
||||||
src/uart
|
|
||||||
)
|
|
||||||
|
|
||||||
#file(GLOB_RECURSE TARGET_HEADERS ${CMAKE_CURRENT_LIST_DIR}/src/*.h)
|
#file(GLOB_RECURSE TARGET_HEADERS ${CMAKE_CURRENT_LIST_DIR}/src/*.h)
|
||||||
#file(GLOB_RECURSE TARGET_SOURCES ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
|
#file(GLOB_RECURSE TARGET_SOURCES ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
|
||||||
|
|
||||||
|
@ -274,6 +256,15 @@ add_executable(
|
||||||
${ADDITIONAL_SRC}
|
${ADDITIONAL_SRC}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_include_directories(proxmark3 PRIVATE
|
||||||
|
..
|
||||||
|
../common
|
||||||
|
../include
|
||||||
|
deps
|
||||||
|
src
|
||||||
|
src/uart
|
||||||
|
)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks, -L/usr/local/opt/readline/lib")
|
set_target_properties(proxmark3 PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks, -L/usr/local/opt/readline/lib")
|
||||||
set_target_properties(proxmark3 PROPERTIES COMPILE_FLAGS "-I/usr/local/opt/readline/include")
|
set_target_properties(proxmark3 PROPERTIES COMPILE_FLAGS "-I/usr/local/opt/readline/include")
|
||||||
|
|
|
@ -14,3 +14,4 @@ add_library(amiibo STATIC
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(amiibo PRIVATE ../../include ../../common)
|
target_include_directories(amiibo PRIVATE ../../include ../../common)
|
||||||
|
target_include_directories(amiibo INTERFACE amiitool)
|
||||||
|
|
|
@ -16,3 +16,4 @@ add_library(jansson STATIC
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(jansson PRIVATE HAVE_STDINT_H)
|
target_compile_definitions(jansson PRIVATE HAVE_STDINT_H)
|
||||||
|
target_include_directories(jansson INTERFACE jansson)
|
||||||
|
|
|
@ -43,3 +43,5 @@ if (NOT MINGW)
|
||||||
target_link_libraries(lua INTERFACE dl)
|
target_link_libraries(lua INTERFACE dl)
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
endif (NOT MINGW)
|
endif (NOT MINGW)
|
||||||
|
|
||||||
|
target_include_directories(lua INTERFACE liblua)
|
||||||
|
|
|
@ -8,3 +8,6 @@ add_library(tinycbor STATIC
|
||||||
tinycbor/cbortojson.c
|
tinycbor/cbortojson.c
|
||||||
tinycbor/cborvalidation.c
|
tinycbor/cborvalidation.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_include_directories(tinycbor INTERFACE tinycbor)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <jansson.h>
|
#include "jansson.h"
|
||||||
#include "tlv.h"
|
#include "tlv.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue