diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-03-11 20:32:22 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-03-12 20:40:08 +0100 |
commit | 08afedf1f51194eea3c121245cfdfba7bb936323 (patch) | |
tree | 41662a9375f0b23240f086a208e12b0c7d5dbc92 /utils/CMakeLists.txt | |
parent | d56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d (diff) | |
download | rockbox-08afedf1f51194eea3c121245cfdfba7bb936323.tar.gz rockbox-08afedf1f51194eea3c121245cfdfba7bb936323.zip |
sansapatcher: Add cmake target to build executable.
Change-Id: Idff5674acb5347643c8a26ef64506f892445977e
Diffstat (limited to 'utils/CMakeLists.txt')
-rw-r--r-- | utils/CMakeLists.txt | 7 |
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() | |||
104 | target_compile_definitions(ipodpatcher PUBLIC RBUTIL _LARGEFILE64_SOURCE) | 104 | target_compile_definitions(ipodpatcher PUBLIC RBUTIL _LARGEFILE64_SOURCE) |
105 | target_include_directories(ipodpatcher PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ipodpatcher) | 105 | target_include_directories(ipodpatcher PUBLIC ${CMAKE_CURRENT_LIST_DIR}/ipodpatcher) |
106 | 106 | ||
107 | add_executable(sansapatcher-bin | ||
108 | sansapatcher/main.c | ||
109 | ) | ||
110 | target_link_libraries(sansapatcher-bin sansapatcher) | ||
111 | target_compile_definitions(sansapatcher-bin PRIVATE VERSION="none") | ||
112 | set_target_properties(sansapatcher-bin PROPERTIES OUTPUT_NAME sansapatcher) | ||
113 | |||
107 | add_library(sansapatcher | 114 | add_library(sansapatcher |
108 | sansapatcher/parttypes.h | 115 | sansapatcher/parttypes.h |
109 | sansapatcher/sansaio.h | 116 | sansapatcher/sansaio.h |