# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY (parallel
DontExecLink.cc
ExecuteThreadedLink.cc
ParallelLink.cc
PureExecLink.cc
SleepLink.cc
TriggerLink.cc
)
# Without this, parallel make will race and crap up the generated files.
ADD_DEPENDENCIES(parallel opencog_atom_types)
TARGET_LINK_LIBRARIES(parallel
framestack
atomcore
atombase
)
INSTALL (TARGETS parallel
EXPORT AtomSpaceTargets
DESTINATION "${CMAKE_INSTALL_LIBDIR}/opencog")
INSTALL (FILES
DontExecLink.h
ExecuteThreadedLink.h
ParallelLink.h
PureExecLink.h
SleepLink.h
TriggerLink.h
DESTINATION "include/opencog/atoms/parallel"
)