blob: 85b815712ef18d80afa9a861af5ccd6a8b8e747c [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001cmake_minimum_required(VERSION 2.6)
2
3PROJECT(fritz-tools C)
4ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations)
5
6SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
7
8FIND_PATH(zlib_include_dir zlib.h)
9INCLUDE_DIRECTORIES(${zlib_include_dir})
10
11ADD_EXECUTABLE(fritz_tffs_read fritz_tffs_read.c)
12ADD_EXECUTABLE(fritz_tffs_nand_read fritz_tffs_nand_read.c)
13ADD_EXECUTABLE(fritz_cal_extract fritz_cal_extract.c)
14TARGET_LINK_LIBRARIES(fritz_cal_extract z)
15
16INSTALL(TARGETS fritz_tffs_read fritz_tffs_nand_read fritz_cal_extract RUNTIME DESTINATION bin)