1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-05 18:20:33 +08:00

fit new CMakeLists

This commit is contained in:
源文雨
2022-04-27 10:34:13 +08:00
parent 37677a211f
commit eda754ec85
3 changed files with 8 additions and 4 deletions

View File

@@ -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)

View File

@@ -11,7 +11,7 @@
#include <sys/mman.h>
#endif
#endif
#include "base14.h"
#include "base16384.h"
#ifdef __cosmopolitan
#define get_file_size(filepath) ((off_t)GetFileSize(filepath))