chore: set LIBRARY DESTINATION

This commit is contained in:
dantmnf
2023-03-04 18:06:01 +08:00
parent 6492565ced
commit 7b39355fc8

View File

@@ -81,17 +81,16 @@ if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
target_link_libraries(MaaCore range-v3::range-v3)
endif ()
if(INSTALL_DEVEL)
set(MaaCore_install_extra_args PUBLIC_HEADER DESTINATION devel/include ARCHIVE DESTINATION devel/lib)
endif()
install(TARGETS MaaCore
RUNTIME DESTINATION .
LIBRARY DESTINATION .
${MaaCore_install_extra_args}
)
if(INSTALL_DEVEL)
install(TARGETS MaaCore
PUBLIC_HEADER DESTINATION devel/include
ARCHIVE DESTINATION devel/lib
)
endif()
if(INSTALL_THIRD_LIBS AND USE_MAADEPS)
maadeps_install()
endif()