diff --git a/source/MaaControlUnit/CMakeLists.txt b/source/MaaControlUnit/CMakeLists.txt index ee386d2ee..c583ebca2 100644 --- a/source/MaaControlUnit/CMakeLists.txt +++ b/source/MaaControlUnit/CMakeLists.txt @@ -19,7 +19,6 @@ add_dependencies(MaaControlUnit MaaUtils) install(TARGETS MaaControlUnit RUNTIME DESTINATION bin LIBRARY DESTINATION bin - PUBLIC_HEADER DESTINATION include ARCHIVE DESTINATION lib ) diff --git a/source/MaaRpc/CMakeLists.txt b/source/MaaRpc/CMakeLists.txt index 660008524..744a01ce4 100644 --- a/source/MaaRpc/CMakeLists.txt +++ b/source/MaaRpc/CMakeLists.txt @@ -27,9 +27,9 @@ target_link_libraries(MaaRpc install(TARGETS MaaRpc RUNTIME DESTINATION bin LIBRARY DESTINATION bin - PUBLIC_HEADER DESTINATION include ARCHIVE DESTINATION lib ) +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../include/MaaRpc" DESTINATION "include") source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_rpc_src}) diff --git a/source/MaaUtils/CMakeLists.txt b/source/MaaUtils/CMakeLists.txt index 1dcaeb644..f5d22c3cd 100644 --- a/source/MaaUtils/CMakeLists.txt +++ b/source/MaaUtils/CMakeLists.txt @@ -11,7 +11,6 @@ target_compile_definitions(MaaUtils PRIVATE MAA_UTILS_EXPORTS) install(TARGETS MaaUtils RUNTIME DESTINATION bin LIBRARY DESTINATION bin - PUBLIC_HEADER DESTINATION include ARCHIVE DESTINATION lib ) diff --git a/source/binding/JavaScript/CMakeLists.txt b/source/binding/JavaScript/CMakeLists.txt index 4f0d285ae..48ae6cea3 100644 --- a/source/binding/JavaScript/CMakeLists.txt +++ b/source/binding/JavaScript/CMakeLists.txt @@ -7,7 +7,6 @@ target_compile_definitions(MaaJSExtra PRIVATE MAA_BINDING_EXTRA_EXPORTS) install(TARGETS MaaJSExtra RUNTIME DESTINATION bin LIBRARY DESTINATION bin - PUBLIC_HEADER DESTINATION include ARCHIVE DESTINATION lib )