We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd5e31 commit f74ff80Copy full SHA for f74ff80
1 file changed
CMakeLists.txt
@@ -5,9 +5,11 @@ include(GNUInstallDirs)
5
set(TERMUX_PREFIX ${CMAKE_INSTALL_PREFIX})
6
7
add_library(termux-api SHARED termux-api.c)
8
+add_library(termux-api-static STATIC termux-api.c)
9
+set_target_properties(termux-api-static PROPERTIES OUTPUT_NAME termux-api)
10
11
add_executable(termux-api-broadcast termux-api-broadcast.c)
-target_link_libraries(termux-api-broadcast termux-api)
12
+target_link_libraries(termux-api-broadcast termux-api-static)
13
14
# TODO: get list through regex or similar
15
set(script_files
@@ -101,7 +103,9 @@ INSTALL(CODE "execute_process( \
101
103
)
102
104
105
install(
- FILES ${CMAKE_BINARY_DIR}/libtermux-api.so
106
+ FILES
107
+ ${CMAKE_BINARY_DIR}/libtermux-api.so
108
+ ${CMAKE_BINARY_DIR}/libtermux-api.a
109
TYPE LIB
110
111
0 commit comments