From eda754ec85c956f8646f8a7ac2f5c88df83f0eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:34:13 +0800 Subject: [PATCH] fit new CMakeLists --- CMakeLists.txt | 10 +++++++--- base16384.c | 2 +- base14.h => base16384.h | 0 3 files changed, 8 insertions(+), 4 deletions(-) rename base14.h => base16384.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index a921caf..240ca8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,11 +11,15 @@ if (${isBigEndian}) endif() IF(CMAKE_SIZEOF_VOID_P EQUAL 8) - add_library(base16384 SHARED base1464.c) + add_library(libbase16384 SHARED base1464.c) ELSE() - add_library(base16384 SHARED base1432.c) + add_library(libbase16384 SHARED base1432.c) ENDIF() +target_link_libraries(base16384 libbase16384) + +set_target_properties(libbase16384 PROPERTIES OUTPUT_NAME base16384) + INSTALL(TARGETS base16384 RUNTIME DESTINATION bin) -INSTALL(TARGETS base16384 LIBRARY DESTINATION lib) +INSTALL(TARGETS libbase16384 LIBRARY DESTINATION lib) INSTALL(FILES base16384.h DESTINATION include) diff --git a/base16384.c b/base16384.c index bcb838e..e0da532 100644 --- a/base16384.c +++ b/base16384.c @@ -11,7 +11,7 @@ #include #endif #endif -#include "base14.h" +#include "base16384.h" #ifdef __cosmopolitan #define get_file_size(filepath) ((off_t)GetFileSize(filepath)) diff --git a/base14.h b/base16384.h similarity index 100% rename from base14.h rename to base16384.h