Libspinscale: begin splitting it off
This commit is contained in:
@@ -5,11 +5,9 @@ include(${CMAKE_SOURCE_DIR}/cmake/flexYacc.cmake)
|
||||
add_library(smocore STATIC
|
||||
# Core files
|
||||
mind.cpp
|
||||
opts.cpp
|
||||
mindThread.cpp
|
||||
componentThread.cpp
|
||||
component.cpp
|
||||
qutex.cpp
|
||||
lockerAndInvokerBase.cpp
|
||||
opts.cpp
|
||||
|
||||
# Body
|
||||
body/body.cpp
|
||||
@@ -41,11 +39,6 @@ add_library(smocore STATIC
|
||||
mindManager/mindManager.cpp
|
||||
)
|
||||
|
||||
# Conditionally add qutexAcquisitionHistoryTracker.cpp only when debug locks are enabled
|
||||
if(ENABLE_DEBUG_LOCKS)
|
||||
target_sources(smocore PRIVATE qutexAcquisitionHistoryTracker.cpp)
|
||||
endif()
|
||||
|
||||
target_include_directories(smocore PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
@@ -53,6 +46,11 @@ target_include_directories(smocore PUBLIC
|
||||
${OPENCL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
# smocore public headers expose Qutex and friends
|
||||
target_link_libraries(smocore PUBLIC
|
||||
spinscale
|
||||
)
|
||||
|
||||
# Link against pthread for CPU affinity functions
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(smocore PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user