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