91ccd16b33
This makes the initialization sequence much cleaner and conceptually well encapsulated. We also now dynamically allocate the Mind objects. They're allocated dynamically by Mrntt inside of initializeReq. This means that we no longer have to worry about jolting and cleaning up the running threads of global mind object even when we never explicitly called Mind.initializeReq. Along with other conceptual improvements to our abstractions, this patch also gets us to a real "end of program initialization" point for the first time.
23 lines
496 B
CMake
23 lines
496 B
CMake
# Core library
|
|
add_library(smocore STATIC
|
|
mind.cpp
|
|
opts.cpp
|
|
componentThread.cpp
|
|
component.cpp
|
|
body/body.cpp
|
|
)
|
|
|
|
target_include_directories(smocore PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
# Link against pthread for CPU affinity functions
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(smocore
|
|
PRIVATE Threads::Threads senseApis mindManager)
|
|
|
|
add_subdirectory(marionette)
|
|
add_subdirectory(deviceManager)
|
|
add_subdirectory(senseApis)
|
|
add_subdirectory(mindManager)
|