2025-09-15 12:44:57 -04:00
|
|
|
# Include Flex/Bison generation rules
|
|
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/flexYacc.cmake)
|
|
|
|
|
|
|
|
|
|
# Consolidated smocore library with all source files
|
2025-07-22 06:15:12 -04:00
|
|
|
add_library(smocore STATIC
|
2025-09-15 12:44:57 -04:00
|
|
|
# Core files
|
2025-07-22 02:46:16 -04:00
|
|
|
mind.cpp
|
2026-02-22 17:46:27 -04:00
|
|
|
mindComponent.cpp
|
2025-07-22 02:46:16 -04:00
|
|
|
componentThread.cpp
|
2026-05-24 16:12:29 -04:00
|
|
|
componentThreadTags.cpp
|
2025-12-26 01:18:39 -04:00
|
|
|
opts.cpp
|
2025-09-15 12:44:57 -04:00
|
|
|
|
|
|
|
|
# Body
|
2025-09-14 22:17:19 -04:00
|
|
|
body/body.cpp
|
2025-09-15 12:44:57 -04:00
|
|
|
|
2025-10-05 22:39:26 -04:00
|
|
|
# Director
|
|
|
|
|
director/director.cpp
|
|
|
|
|
|
2025-12-27 14:15:17 -04:00
|
|
|
# Simulator
|
|
|
|
|
simulator/simulator.cpp
|
|
|
|
|
|
2025-09-15 12:44:57 -04:00
|
|
|
# Marionette
|
|
|
|
|
marionette/main.cpp
|
|
|
|
|
marionette/salmanoff.cpp
|
|
|
|
|
marionette/lifetime.cpp
|
|
|
|
|
marionette/qualeEvent.cpp
|
2025-10-05 22:03:33 -04:00
|
|
|
marionette/negtrinEvent.cpp
|
2025-09-15 12:44:57 -04:00
|
|
|
|
|
|
|
|
# DeviceManager
|
|
|
|
|
deviceManager/deviceManager.cpp
|
2025-09-28 23:07:39 -04:00
|
|
|
deviceManager/deviceReattacher.cpp
|
2025-09-15 12:44:57 -04:00
|
|
|
deviceManager/deviceAttachmentPipeSpecParser.cpp
|
|
|
|
|
${LEX_OUTPUT}
|
|
|
|
|
${YACC_OUTPUT}
|
|
|
|
|
|
|
|
|
|
# SenseApis
|
2025-10-01 18:47:42 -04:00
|
|
|
stimBuffApis/stimBuffApiManager.cpp
|
2025-09-15 12:44:57 -04:00
|
|
|
|
2026-06-10 21:14:55 -04:00
|
|
|
# Loadable shared libraries
|
|
|
|
|
loadableLib/loadableLibraryManager.cpp
|
|
|
|
|
|
2026-06-10 21:16:05 -04:00
|
|
|
# Comparator libs
|
|
|
|
|
comparatorLibs/comparatorApiManager.cpp
|
|
|
|
|
|
2025-11-19 22:33:30 -04:00
|
|
|
# ComputeManager
|
|
|
|
|
computeManager/computeManager.cpp
|
|
|
|
|
|
2025-09-15 12:44:57 -04:00
|
|
|
# MindManager
|
|
|
|
|
mindManager/mindManager.cpp
|
2025-07-22 02:46:16 -04:00
|
|
|
)
|
|
|
|
|
|
2025-07-22 06:15:12 -04:00
|
|
|
target_include_directories(smocore PUBLIC
|
2025-07-22 02:46:16 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
2025-09-15 12:44:57 -04:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2025-11-03 22:18:45 -04:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2025-11-19 22:33:30 -04:00
|
|
|
${OPENCL_INCLUDE_DIRS}
|
2025-07-22 02:46:16 -04:00
|
|
|
)
|
|
|
|
|
|
2025-12-26 01:18:39 -04:00
|
|
|
# smocore public headers expose Qutex and friends
|
|
|
|
|
target_link_libraries(smocore PUBLIC
|
|
|
|
|
spinscale
|
|
|
|
|
)
|
|
|
|
|
|
2025-08-03 09:18:45 -04:00
|
|
|
# Link against pthread for CPU affinity functions
|
|
|
|
|
find_package(Threads REQUIRED)
|
2025-11-03 22:18:45 -04:00
|
|
|
target_link_libraries(smocore PRIVATE
|
|
|
|
|
Threads::Threads
|
|
|
|
|
Boost::system
|
|
|
|
|
Boost::log
|
2025-11-19 22:33:30 -04:00
|
|
|
${OPENCL_LIBRARIES}
|
2025-11-20 00:55:19 -04:00
|
|
|
attachmentSupport
|
2025-11-19 22:33:30 -04:00
|
|
|
)
|
|
|
|
|
target_link_directories(smocore PRIVATE
|
|
|
|
|
${OPENCL_LIBRARY_DIRS}
|
2025-11-03 22:18:45 -04:00
|
|
|
)
|