forked from socram8888/amiitool
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
50 lines (42 loc) · 823 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 2.8.4)
project(nfc3d C)
include_directories(include)
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
endif()
set(HEADER_FILES
include/nfc3d/drbg.h
include/nfc3d/keygen.h
include/nfc3d/amiibo.h
)
set(LIB_FILES
${HEADER_FILES}
src/drbg.c
src/keygen.c
src/amiibo.c
)
set(TEST_FILES
${LIB_FILES}
src/util.h
src/util.c
)
set(ZEROTEST_FILES
${TEST_FILES}
src/zerotest.c
)
add_executable(zerotest ${ZEROTEST_FILES})
target_link_libraries(zerotest crypto)
#[[ TODO: fix this
#set(NINTEST_FILES
# ${TEST_FILES}
# src/nintest.c
#)
#add_executable(nintest ${NINTEST_FILES})
#target_link_libraries(nintest crypto)
#]]
set(AMIITOOL_FILES
${TEST_FILES}
src/amiitool.c
)
add_executable(amiitool ${AMIITOOL_FILES})
target_link_libraries(amiitool crypto)