Release v4.13441 - midsummer
[RRG-proxmark3.git] / client / deps / amiibo.cmake
blob8c524c1707de7934e33de3c4a7d99345d06638e1
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 -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)