Ignore:
Timestamp:
Aug 29, 2014, 4:47:16 PM (4 years ago)
Author:
linmengl
Message:

generate llvm.uadd.with.overflow. add 'make check' target to run greptest.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r3991 r4096  
    33project (icgrep)
    44
     5enable_testing()
    56# The version number.
    67set (icgrep_VERSION_MAJOR 0)
    78set (icgrep_VERSION_MINOR 8)
    8  
     9
    910# configure a header file to pass some of the CMake settings
    1011# to the source code
     
    3738llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES mcjit native)
    3839
    39  
     40
    4041add_library(PabloADT pe_advance.cpp  pe_all.cpp  pe_and.cpp pe_call.cpp pe_charclass.cpp  pe_matchstar.cpp pe_scanthru.cpp pe_not.cpp  pe_or.cpp  pe_pabloe.cpp  pe_sel.cpp  pe_var.cpp  pe_xor.cpp ps_assign.cpp  ps_if.cpp  ps_pablos.cpp  ps_while.cpp printer_pablos.cpp)
    4142
     
    4546
    4647#include_directories("${PROJECT_BINARY_DIR}")
    47 include_directories("${PROJECT_SOURCE_DIR}") 
     48include_directories("${PROJECT_SOURCE_DIR}")
    4849include_directories("${PROJECT_SOURCE_DIR}/include")
    4950include_directories("${PROJECT_SOURCE_DIR}/include/simd-lib")
    5051include_directories("${PROJECT_SOURCE_DIR}/include/simd-lib/idisa_cpp")
    51  
     52
    5253# add the executable
    5354add_executable(icgrep icgrep.cpp llvm_gen.cpp llvm_gen_helper.cpp utf_encoding.cpp cc_codegenobject.cpp  cc_compiler.cpp  cc_compiler_helper.cpp re_simplifier.cpp re_reducer.cpp re_nullable.cpp re_compiler.cpp pbix_compiler.cpp  symbol_generator.cpp utf8_encoder.cpp unicode_categories.h unicode_categories-flat.h unicode_categories-simple.h)
     
    5657
    5758set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++0x -O3 -msse2")
     59
     60add_test(
     61  NAME greptest
     62  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
     63  COMMAND python greptest.py ${CMAKE_BINARY_DIR}/icgrep)
     64
     65add_custom_target (check
     66  COMMAND ${CMAKE_CTEST_COMMAND}
     67  DEPENDS icgrep)
Note: See TracChangeset for help on using the changeset viewer.