# 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)
