
# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})

ADD_LIBRARY (lambda SHARED
	BetaRedex.cc
	BindLink.cc
	DefineLink.cc
	PatternLink.cc
	PatternUtils.cc
	ScopeLink.cc
	VariableList.cc
)

# Without this, parallel make will race and crap up the generated files.
ADD_DEPENDENCIES(lambda opencog_atom_types)

TARGET_LINK_LIBRARIES(lambda
	atomutils
	atomcore
	${COGUTIL_LIBRARY}
)

IF (CYGWIN)
	INSTALL (TARGETS lambda
		DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
	)
ELSE (CYGWIN)
	INSTALL (TARGETS lambda
		LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
	)
ENDIF (CYGWIN)

INSTALL (FILES
	BindLink.h
	PatternLink.h
	PatternUtils.h
	VariableList.h
	DESTINATION "include/${PROJECT_NAME}/atoms/bind"
)


# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})

ADD_LIBRARY (lambda SHARED
	BetaRedex.cc
	BindLink.cc
	DefineLink.cc
	PatternLink.cc
	PatternUtils.cc
	ScopeLink.cc
	VariableList.cc
)

# Without this, parallel make will race and crap up the generated files.
ADD_DEPENDENCIES(lambda opencog_atom_types)

TARGET_LINK_LIBRARIES(lambda
	atomutils
	atomcore
	${COGUTIL_LIBRARY}
)

IF (CYGWIN)
	INSTALL (TARGETS lambda
		DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
	)
ELSE (CYGWIN)
	INSTALL (TARGETS lambda
		LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
	)
ENDIF (CYGWIN)

INSTALL (FILES
	BindLink.h
	ScopeLink.h
	DefineLink.h
	PatternLink.h
	PatternUtils.h
	VariableList.h
	DESTINATION "include/${PROJECT_NAME}/atoms/bind"
)

Add missing DefineLink and ScopeLink header file to install
Add missing DefineLink and ScopeLink header file to install
