2017-03-15 11:48:56 +01:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
PROJECT(fritz-tools C)
|
|
|
|
ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations)
|
|
|
|
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
|
|
|
|
2017-04-18 17:13:47 -07:00
|
|
|
FIND_PATH(zlib_include_dir zlib.h)
|
|
|
|
INCLUDE_DIRECTORIES(${zlib_include_dir})
|
|
|
|
|
2017-03-15 11:48:56 +01:00
|
|
|
ADD_EXECUTABLE(fritz_tffs_read fritz_tffs_read.c)
|
2019-01-24 17:53:13 +01:00
|
|
|
ADD_EXECUTABLE(fritz_tffs_nand_read fritz_tffs_nand_read.c)
|
2017-03-15 11:48:56 +01:00
|
|
|
ADD_EXECUTABLE(fritz_cal_extract fritz_cal_extract.c)
|
|
|
|
TARGET_LINK_LIBRARIES(fritz_cal_extract z)
|
|
|
|
|
2019-01-24 17:53:13 +01:00
|
|
|
INSTALL(TARGETS fritz_tffs_read fritz_tffs_nand_read fritz_cal_extract RUNTIME DESTINATION bin)
|