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