# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY (clearbox
AccumulateLink.cc
ArithmeticLink.cc
BoolOpLink.cc
DecimateLink.cc
DivideLink.cc
ElementOfLink.cc
FoldLink.cc
ImpulseLink.cc
MaxLink.cc
MinLink.cc
MinusLink.cc
NumericFunctionLink.cc
PlusLink.cc
TimesLink.cc
)
# Without this, parallel make will race and crap up the generated files.
ADD_DEPENDENCIES(clearbox opencog_atom_types)
TARGET_LINK_LIBRARIES(clearbox
atom_types
atomcore
atombase
value
${COGUTIL_LIBRARY}
)
INSTALL (TARGETS clearbox EXPORT AtomSpaceTargets
DESTINATION "${CMAKE_INSTALL_LIBDIR}/opencog"
)
INSTALL (FILES
AccumulateLink.h
ArithmeticLink.h
BoolOpLink.h
DecimateLink.h
DivideLink.h
ElementOfLink.h
FoldLink.h
ImpulseLink.h
MaxLink.h
MinLink.h
MinusLink.h
NumericFunctionLink.h
PlusLink.h
TimesLink.h
DESTINATION "include/opencog/atoms/reduct"
)