1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-13 00:00:23 +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)