include(CompilerConfig)
include(LLVMConfig)

ADD_LIBRARY( spm_core_compiler STATIC
		spmCompiler.cpp
		spmAnnotation.cpp
		spmLocalAnnotation.cpp
		spmGlobalAnnotation.cpp
		spmAnnotations.cpp
		callClassifier.cpp
		)

ADD_DEFINITIONS(-fPIC -DCOMPILING_SPM)

TARGET_LINK_LIBRARIES( spm_core_compiler ITKCommon )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(../)
#include_directories($(patsubst %,-I%,$(subst :, ,$(ENV{CBAC_RESOURCES}))))



#include_directories($ENV{PCBAC_INCLUDE})

#configure_file(Config.h.in Config.h)

#install(FILES entry.s exit.s
#        DESTINATION ${INSTALL_DATA_PATH})
