diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-07-21 21:50:10 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-07-21 21:50:10 -0700 |
commit | 1232b82b1dbb6d9344c1dfa10b4c16d376a40964 (patch) | |
tree | b8036a4cefe0717d7dc16020550aca6e90120bbf | |
parent | 609c725cedbeca31ae3aba3a9c39c5030ea1d20f (diff) | |
download | acron-1232b82b1dbb6d9344c1dfa10b4c16d376a40964.tar acron-1232b82b1dbb6d9344c1dfa10b4c16d376a40964.tar.gz acron-1232b82b1dbb6d9344c1dfa10b4c16d376a40964.tar.bz2 acron-1232b82b1dbb6d9344c1dfa10b4c16d376a40964.zip |
build(libacron): add static library
Signed-off-by: Trumeet <yuuta@yuuta.moe>
-rw-r--r-- | client/libacron/CMakeLists.txt | 6 | ||||
-rw-r--r-- | client/libacron/README.md | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/client/libacron/CMakeLists.txt b/client/libacron/CMakeLists.txt index db37671..c1bbe66 100644 --- a/client/libacron/CMakeLists.txt +++ b/client/libacron/CMakeLists.txt @@ -61,6 +61,10 @@ add_library(ac SHARED ${LIBAC_PUBLIC_HEADERS} ${LIBAC_PRIVATE} ) +add_library(ac-static STATIC + ${LIBAC_PUBLIC_HEADERS} + ${LIBAC_PRIVATE} + ) set(LIBAC_INCLUDES "${PROJECT_BINARY_DIR}" include/ private/ wic/include/) @@ -80,6 +84,8 @@ set(LIBAC_DEPS ${LIBAC_DEPS} json-c::json-c) target_include_directories(ac PUBLIC ${LIBAC_INCLUDES}) target_link_libraries(ac ${LIBAC_DEPS}) +target_include_directories(ac-static PUBLIC ${LIBAC_INCLUDES}) +target_link_libraries(ac-static ${LIBAC_DEPS}) add_executable(acronc acronc/main.c diff --git a/client/libacron/README.md b/client/libacron/README.md index 8305a5d..5e0f989 100644 --- a/client/libacron/README.md +++ b/client/libacron/README.md @@ -26,7 +26,7 @@ cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build . ``` -The shared library will be at `libac.so`. +The shared library will be at `libac.so` (`ac.dll` on Windows). The static library will be at `libac-static.a` (`ac-static.lib` on Windows). The distributable headers are at `client/libacron/include/`. |