chore: update build system

- use configuration-arch-based path in MSVC to make sure generated package can be used by native MSVC project.
- add github action and corresponding build script. but not tested.
- fix some testbench code.
This commit is contained in:
2024-06-20 15:47:15 +08:00
parent 3fa05b43d9
commit bb17bb6a1f
7 changed files with 93 additions and 12 deletions

View File

@ -67,13 +67,11 @@ PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/utf-8>
)
# Install project
# Install binary
# Install binary and headers
install(TARGETS YYCCommonplace
EXPORT YYCCommonplaceTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${YYCC_INSTALL_PATH_LIB}
ARCHIVE DESTINATION ${YYCC_INSTALL_PATH_LIB}
INCLUDES DESTINATION include
FILE_SET HEADERS DESTINATION include
)