From 08afedf1f51194eea3c121245cfdfba7bb936323 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 11 Mar 2022 20:32:22 +0100 Subject: sansapatcher: Add cmake target to build executable. Change-Id: Idff5674acb5347643c8a26ef64506f892445977e --- utils/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils') diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 500f9dab10..9797d020d3 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -104,6 +104,13 @@ endif() target_compile_definitions(ipodpatcher PUBLIC RBUTIL _LARGEFILE64_SOURCE) target_include_directories(ipodpatcher PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ipodpatcher) +add_executable(sansapatcher-bin + sansapatcher/main.c + ) +target_link_libraries(sansapatcher-bin sansapatcher) +target_compile_definitions(sansapatcher-bin PRIVATE VERSION="none") +set_target_properties(sansapatcher-bin PROPERTIES OUTPUT_NAME sansapatcher) + add_library(sansapatcher sansapatcher/parttypes.h sansapatcher/sansaio.h -- cgit v1.2.3