@@ -9,18 +9,18 @@ option(LOGOS_PACKAGE_MANAGER_USE_VENDOR "Force use of vendored Logos dependencie
99option (LGPM_PORTABLE_BUILD "Build for portable variant selection (selects portable LGX variants instead of dev)" OFF )
1010
1111# Allow override from environment or command line
12- if (NOT DEFINED LOGOS_LIBLOGOS_ROOT )
13- set (_parent_liblogos "${CMAKE_SOURCE_DIR} /../logos-liblogos " )
12+ if (NOT DEFINED LOGOS_MODULE_ROOT )
13+ set (_parent_module "${CMAKE_SOURCE_DIR} /../logos-module " )
1414 set (_use_vendor ${LOGOS_PACKAGE_MANAGER_USE_VENDOR} )
1515 if (NOT _use_vendor)
16- if (NOT EXISTS "${_parent_liblogos} /interface.h" )
16+ if (NOT EXISTS "${_parent_module} /src /interface.h" )
1717 set (_use_vendor ON )
1818 endif ()
1919 endif ()
2020 if (_use_vendor)
21- set (LOGOS_LIBLOGOS_ROOT "${CMAKE_SOURCE_DIR} /vendor/logos-liblogos " )
21+ set (LOGOS_MODULE_ROOT "${CMAKE_SOURCE_DIR} /vendor/logos-module " )
2222 else ()
23- set (LOGOS_LIBLOGOS_ROOT "${_parent_liblogos } " )
23+ set (LOGOS_MODULE_ROOT "${_parent_module } " )
2424 endif ()
2525endif ()
2626
@@ -40,13 +40,13 @@ if(NOT DEFINED LOGOS_CPP_SDK_ROOT)
4040endif ()
4141
4242# Check if dependencies are available (support both source and installed layouts)
43- set (_liblogos_found FALSE )
44- if (EXISTS "${LOGOS_LIBLOGOS_ROOT} /interface.h" )
45- set (_liblogos_found TRUE )
46- set (_liblogos_is_source TRUE )
47- elseif (EXISTS "${LOGOS_LIBLOGOS_ROOT } /include/interface.h" )
48- set (_liblogos_found TRUE )
49- set (_liblogos_is_source FALSE )
43+ set (_logos_module_found FALSE )
44+ if (EXISTS "${LOGOS_MODULE_ROOT} /src /interface.h" )
45+ set (_logos_module_found TRUE )
46+ set (_logos_module_is_source TRUE )
47+ elseif (EXISTS "${LOGOS_MODULE_ROOT } /include/module_lib /interface.h" )
48+ set (_logos_module_found TRUE )
49+ set (_logos_module_is_source FALSE )
5050endif ()
5151
5252set (_cpp_sdk_found FALSE )
@@ -58,9 +58,9 @@ elseif(EXISTS "${LOGOS_CPP_SDK_ROOT}/include/cpp/logos_api.h")
5858 set (_cpp_sdk_is_source FALSE )
5959endif ()
6060
61- if (NOT _liblogos_found )
62- message (FATAL_ERROR "logos-liblogos not found at ${LOGOS_LIBLOGOS_ROOT } . "
63- "Set LOGOS_LIBLOGOS_ROOT or run git submodule update --init --recursive." )
61+ if (NOT _logos_module_found )
62+ message (FATAL_ERROR "logos-module not found at ${LOGOS_MODULE_ROOT } . "
63+ "Set LOGOS_MODULE_ROOT or run git submodule update --init --recursive." )
6464endif ()
6565
6666if (NOT _cpp_sdk_found)
@@ -137,11 +137,11 @@ set(PLUGIN_SOURCES
137137 src/lib/package_manager_lib.h
138138)
139139
140- # Add liblogos interface header
141- if (_liblogos_is_source )
142- list (APPEND PLUGIN_SOURCES ${LOGOS_LIBLOGOS_ROOT} /interface.h)
140+ # Add logos-module interface header
141+ if (_logos_module_is_source )
142+ list (APPEND PLUGIN_SOURCES ${LOGOS_MODULE_ROOT} /src /interface.h)
143143else ()
144- list (APPEND PLUGIN_SOURCES ${LOGOS_LIBLOGOS_ROOT } /include /interface.h)
144+ list (APPEND PLUGIN_SOURCES ${LOGOS_MODULE_ROOT } /include /module_lib /interface.h)
145145endif ()
146146
147147# Add SDK sources (only if source layout, installed layout uses the library)
@@ -211,10 +211,10 @@ target_include_directories(package_manager_plugin PRIVATE
211211)
212212
213213# Add include directories based on layout type
214- if (_liblogos_is_source )
215- target_include_directories (package_manager_plugin PRIVATE ${LOGOS_LIBLOGOS_ROOT} )
214+ if (_logos_module_is_source )
215+ target_include_directories (package_manager_plugin PRIVATE ${LOGOS_MODULE_ROOT} /src )
216216else ()
217- target_include_directories (package_manager_plugin PRIVATE ${LOGOS_LIBLOGOS_ROOT } /include )
217+ target_include_directories (package_manager_plugin PRIVATE ${LOGOS_MODULE_ROOT } /include/module_lib )
218218endif ()
219219
220220if (_cpp_sdk_is_source)
0 commit comments