diff options
-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/`. |