Skip to content

Commit

Permalink
chore: cmakelists 小细节修正
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 26, 2023
1 parent 286b806 commit b2286ff
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 59 deletions.
4 changes: 2 additions & 2 deletions source/MaaControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB_RECURSE maa_control_unit_src *.h *.hpp *.cpp ../include/ControlUnit/*.h)
file(GLOB_RECURSE maa_control_unit_src *.h *.hpp *.cpp ../include)

add_library(MaaControlUnit SHARED ${maa_control_unit_src})

Expand All @@ -23,4 +23,4 @@ install(TARGETS MaaControlUnit
ARCHIVE DESTINATION lib
)

source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_control_unit_src})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_control_unit_src})
4 changes: 2 additions & 2 deletions source/MaaFramework/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB_RECURSE maa_src *.cpp *.h *.hpp ../include/MaaFramework/*.h)
file(GLOB_RECURSE maa_src *.cpp *.h *.hpp ../include ../../include/MaaFramework)

add_library(MaaFramework SHARED ${maa_src})

Expand Down Expand Up @@ -32,7 +32,7 @@ install(TARGETS MaaFramework
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../include/MaaFramework" DESTINATION "include" PATTERN "interfaces" EXCLUDE)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../include/MaaFramework/interfaces" DESTINATION "share")

source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_src})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_src})

if (WIN32)
add_custom_command(TARGET MaaFramework POST_BUILD
Expand Down
4 changes: 2 additions & 2 deletions source/MaaToolKit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB_RECURSE maa_toolkit_src *.h *.hpp *.cpp ../include)
file(GLOB_RECURSE maa_toolkit_src *.cpp *.h *.hpp ../include ../../include/MaaToolKit)

add_library(MaaToolKit SHARED ${maa_toolkit_src})

Expand All @@ -19,4 +19,4 @@ install(TARGETS MaaToolKit
)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../include/MaaToolKit" DESTINATION "include")

source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_toolkit_src})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_toolkit_src})
4 changes: 2 additions & 2 deletions source/MaaUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB_RECURSE maa_utils_src *.h *.hpp *.cpp ../include/Utils/*.hpp)
file(GLOB_RECURSE maa_utils_src *.h *.hpp *.cpp ../include)

add_library(MaaUtils SHARED ${maa_utils_src})
target_include_directories(MaaUtils
Expand All @@ -15,4 +15,4 @@ install(TARGETS MaaUtils
ARCHIVE DESTINATION lib
)

source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_utils_src})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_utils_src})
50 changes: 0 additions & 50 deletions source/MaaUtils/MaaUtils.vcxproj.filters

This file was deleted.

2 changes: 1 addition & 1 deletion source/binding/JavaScript/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ install(TARGETS MaaJSExtra
ARCHIVE DESTINATION lib
)

source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${maa_js_src})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_js_src})

0 comments on commit b2286ff

Please sign in to comment.