1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 06:22:51 +01:00
llvm-mirror/tools/llvmc2/CMakeLists.txt
Oscar Fuentes 4e4ae7ef78 CMake: Lists of source files updated. Removed bogus dependency from
lib/VMCore/CMakeLists.txt

llvm-svn: 56541
2008-09-24 01:58:12 +00:00

34 lines
867 B
CMake

set(LLVM_LINK_COMPONENTS support system)
set(LLVM_REQUIRES_EH 1)
macro(tgen ofn)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
COMMAND tblgen ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_SOURCE_DIR}/lib/Target -I ${llvm_include_path} ${CMAKE_CURRENT_SOURCE_DIR}/Graph.td -o ${ofn}
DEPENDS
tblgen
${CMAKE_CURRENT_SOURCE_DIR}/Common.td
${CMAKE_CURRENT_SOURCE_DIR}/Graph.td
${CMAKE_CURRENT_SOURCE_DIR}/Tools.td
COMMENT "Building ${ofn}..."
)
endmacro(tgen ofn)
tgen(AutoGenerated.inc -gen-llvmc)
add_custom_target(AutoGenerated_ct echo Tablegenning
DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/AutoGenerated.inc
)
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
add_llvm_tool(llvmc2
Action.cpp
AutoGenerated.cpp
CompilationGraph.cpp
Plugin.cpp
llvmc.cpp
)
add_dependencies(llvmc2 AutoGenerated_ct)