OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace / lib / AtomSpaceConfig.cmake.in

67 lines · in ref:
@PACKAGE_INIT@

include("@CMAKE_INSTALL_PREFIX@/lib/cmake/AtomSpace/AtomSpaceTargets.cmake")

# Execution depends on atomspace and atomspace depends on execution,
# but circular dependencies are forbidden by cmake, so dependancy
# on execution is omitted in atomspace at build time. It should be set
# here for proper linking.
set_property(TARGET execution
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	atomspace
)

set_property(TARGET query-engine
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	pattern
	atomspace
)

set_property(TARGET atom_types
	APPEND PROPERTY INTERFACE_LINK_LIBRARIES
	atombase
)

# XXX why are these listed in reverse dependency order?
# Doesn't the linker care about this?
set(ATOMSPACE_LIBRARIES
	atom_types
	value
	atombase
	atomcore
	atomflow
	columnvec
	clearbox
	scope
	join
	pattern
	query-engine
	execution
	framestack
	grounded
	grant
	signature
	smob
	atomspace
)

# Python is optional
IF (HAVE_CYTHON)
	set(ATOMSPACE_PythonEval_LIBRARY PythonEval)
	SET(ATOMSPACE_LIBRARIES
	    ${ATOMSPACE_LIBRARIES}
	    ${ATOMSPACE_PythonEval_LIBRARY}
	)
ENDIF (HAVE_CYTHON)

set(ATOMSPACE_DATA_DIR "@CMAKE_INSTALL_PREFIX@/share/opencog")
set(ATOMSPACE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/")
set(ATOMSPACE_VERSION "@SEMANTIC_VERSION@")
set(ATOMSPACE_FOUND 1)

MESSAGE(STATUS "AtomSpace version ${ATOMSPACE_VERSION} found.")

# Add atomspace's cmake modules to the module path. This is used by
# guix and NIX to find OpenCogMacros, OpenCogGuile, OpenCogCython.
list(APPEND CMAKE_MODULE_PATH "${ATOMSPACE_DATA_DIR}/cmake")