File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,15 +295,6 @@ IF(NOT MR_EMSCRIPTEN AND NOT APPLE)
295295ENDIF()
296296
297297IF(MESHLIB_BUILD_MCP AND NOT MR_EMSCRIPTEN)
298- # On Windows, and on Linux+Vcpkg there is no third-party build script, so add fastmcpp as a subdirectory.
299- IF(MESHLIB_USE_VCPKG OR APPLE)
300- IF(APPLE)
301- set(FASTMCPP_DEPS_ADD_SUBDIRECTORY ON)
302- ENDIF()
303- add_subdirectory(${MESHLIB_THIRDPARTY_DIR} /fastmcpp fastmcpp)
304- ELSE()
305- find_package(fastmcpp REQUIRED)
306- ENDIF()
307298 add_subdirectory(${PROJECT_SOURCE_DIR} /MRMcp ./MRMcp)
308299ENDIF()
309300
Original file line number Diff line number Diff line change @@ -8,25 +8,27 @@ add_library(${PROJECT_NAME} SHARED ${SOURCES} ${HEADERS})
88target_link_libraries (${PROJECT_NAME}
99 PUBLIC
1010 MRMesh
11- fastmcpp::fastmcpp_core
1211)
1312
1413IF (MR_PCH)
1514 target_precompile_headers (${PROJECT_NAME} REUSE_FROM MRPch )
1615ENDIF ()
1716
18- # Fastmcpp stuff.
19- option (MESHLIB_BUILD_MCP "Enable MCP server" ON )
20- IF (MESHLIB_BUILD_MCP AND NOT MR_EMSCRIPTEN)
17+ # On Windows, and on Linux+Vcpkg there is no third-party build script, so add fastmcpp as a subdirectory.
18+ IF (MESHLIB_USE_VCPKG OR APPLE )
19+ IF (APPLE )
20+ set (FASTMCPP_DEPS_ADD_SUBDIRECTORY ON )
21+ ENDIF ()
22+ add_subdirectory (${MESHLIB_THIRDPARTY_DIR} /fastmcpp fastmcpp )
2123 target_link_libraries (${PROJECT_NAME} PRIVATE fastmcpp_core )
22-
2324 target_include_directories (${PROJECT_NAME} PRIVATE
2425 ${MESHLIB_THIRDPARTY_DIR} /fastmcpp/include
2526 ${MESHLIB_THIRDPARTY_DIR} /cpp-httplib
2627 ${MESHLIB_THIRDPARTY_DIR} /nlohmann-json/include
2728 )
2829ELSE ()
29- target_compile_definitions (${PROJECT_NAME} PRIVATE MR_ENABLE_MCP_SERVER=0 )
30+ find_package (fastmcpp REQUIRED )
31+ target_link_libraries (${PROJECT_NAME} PUBLIC fastmcpp::fastmcpp_core )
3032ENDIF ()
3133
3234install (
You can’t perform that action at this time.
0 commit comments