1 # AsmParser, with a Bison generated parser:
8 "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.y"
9 "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h"
10 "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp"
12 ELSE(BISON_EXECUTABLE)
13 MESSAGE(STATUS "Bison not found, the pregenerated files will be used")
16 FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} WIN_SOURCE_DIR)
19 OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp"
20 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.cpp.cvs"
21 COMMAND copy \"${WIN_SOURCE_DIR}\\llvmAsmParser.cpp.cvs\" \"${WIN_SOURCE_DIR}\\llvmAsmParser.cpp\"
24 OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h"
25 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/llvmAsmParser.h.cvs"
26 COMMAND copy \"${WIN_SOURCE_DIR}\\llvmAsmParser.h.cvs\" \"${WIN_SOURCE_DIR}\\llvmAsmParser.h\"
29 MESSAGE(SEND_ERROR "Not implemented")
30 # fixme do the same with cp instead of copy
32 ENDIF(BISON_EXECUTABLE)
34 add_llvm_library(LLVMAsmParser
35 llvmAsmParser.cpp # Generated from llvmAsmParser.y or copyied from corresponding .cvs
36 llvmAsmParser.h # needed for the associated custom command to work