renamed 'hf mfdes readdata, writedata' to 'read/write'
[RRG-proxmark3.git] / client / deps / amiibo.cmake
blobc946c0682d13516be3bc4659b94e6f9b6edf2d89
1 # just for testing amiitool before complete migration into a lib:
3 #amiitool:
4 #gcc $(CFLAGS) \
5 #amiitool.c $(MYSRCS) ../../../../common/../../commonutil.c ../ui.c -lreadline -lm ../../../../common/mbedtls/libmbedtls.a \
6 #-o amiitool
8 add_library(pm3rrg_rdv4_amiibo STATIC
9         amiitool/amiibo.c
10         amiitool/drbg.c
11         amiitool/keygen.c
14 if (NOT TARGET pm3rrg_rdv4_mbedtls)
15   include(mbedtls.cmake)
16 endif()
18 target_link_libraries(pm3rrg_rdv4_amiibo PRIVATE
19         m
20         pm3rrg_rdv4_mbedtls)
22 target_compile_options(pm3rrg_rdv4_amiibo PRIVATE -Wall -Werror -O3)
23 set_property(TARGET pm3rrg_rdv4_amiibo PROPERTY POSITION_INDEPENDENT_CODE ON)
25 target_include_directories(pm3rrg_rdv4_amiibo PRIVATE amiitool
26             ../../common
27             ../../include
28             ../src
29             jansson)
31 target_include_directories(pm3rrg_rdv4_amiibo INTERFACE amiitool)