commit
bba5c8a39a
109 files changed
+14085
No files matched your search
@@ -0,0 +1,24 @@
|
||||
add_library(void STATIC
|
||||
api.cpp
|
||||
)
|
||||
target_include_directories(void
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
# The loader static archives must also be linked by consumers because a static
|
||||
# library does not bundle its own dependencies.
|
||||
target_link_libraries(void PUBLIC
|
||||
voidlibc_loader_common
|
||||
$<$<BOOL:${UNIX}>:$<IF:$<PLATFORM_ID:Darwin>,voidlibc_loader_macos,voidlibc_loader_linux>>
|
||||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
if(WIN32)
|
||||
target_link_libraries(void PUBLIC voidlibc_loader_windows)
|
||||
endif()
|
||||
|
||||
install(TARGETS void
|
||||
EXPORT VoidLibCTargets
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
Reference in new issue
Block a user