1include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) 2 3add_llvm_library(LLVMARMDisassembler 4 ARMDisassembler.cpp 5 ARMDisassemblerCore.cpp 6 ) 7# workaround for hanging compilation on MSVC8, 9 and 10 8if( MSVC_VERSION EQUAL 1400 OR MSVC_VERSION EQUAL 1500 OR MSVC_VERSION EQUAL 1600 ) 9set_property( 10 SOURCE ARMDisassembler.cpp 11 PROPERTY COMPILE_FLAGS "/Od" 12 ) 13endif() 14add_dependencies(LLVMARMDisassembler ARMCodeGenTable_gen) 15