summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2022-03-11 20:32:22 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2022-03-12 20:40:08 +0100
commit08afedf1f51194eea3c121245cfdfba7bb936323 (patch)
tree41662a9375f0b23240f086a208e12b0c7d5dbc92
parentd56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d (diff)
downloadrockbox-08afedf1f51194eea3c121245cfdfba7bb936323.tar.gz
rockbox-08afedf1f51194eea3c121245cfdfba7bb936323.zip
sansapatcher: Add cmake target to build executable.
Change-Id: Idff5674acb5347643c8a26ef64506f892445977e
-rw-r--r--utils/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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()
104target_compile_definitions(ipodpatcher PUBLIC RBUTIL _LARGEFILE64_SOURCE) 104target_compile_definitions(ipodpatcher PUBLIC RBUTIL _LARGEFILE64_SOURCE)
105target_include_directories(ipodpatcher PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ipodpatcher) 105target_include_directories(ipodpatcher PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ipodpatcher)
106 106
107add_executable(sansapatcher-bin
108 sansapatcher/main.c
109 )
110target_link_libraries(sansapatcher-bin sansapatcher)
111target_compile_definitions(sansapatcher-bin PRIVATE VERSION="none")
112set_target_properties(sansapatcher-bin PROPERTIES OUTPUT_NAME sansapatcher)
113
107add_library(sansapatcher 114add_library(sansapatcher
108 sansapatcher/parttypes.h 115 sansapatcher/parttypes.h
109 sansapatcher/sansaio.h 116 sansapatcher/sansaio.h