Ignore:
Timestamp:
Jul 20, 2015, 3:43:57 PM (4 years ago)
Author:
nmedfort
Message:

Added optional CMake command -DDISABLE_PREGENERATED_UCD_FUNCTIONS.

File:
1 edited

Legend:

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

    r4685 r4686  
    1515endif()
    1616option(ENABLE_MULTIPLEXING "Compiling the Multiplexing Module")
     17option(DISABLE_PREGENERATED_UCD_FUNCTIONS "Disable compiling the pregenerated UCD functions")
    1718
    1819
     
    7980target_link_libraries (RegExpCompiler RegExpADT)
    8081
     82set(PRECOMPILED_FILES "")
     83
     84IF(DISABLE_PREGENERATED_UCD_FUNCTIONS)
     85set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_PREGENERATED_UCD_FUNCTIONS")
     86MESSAGE("Disabling predefined UCD functions...")
     87ELSE()
    8188# add the executable
    8289add_executable(generate_predefined_ucd_functions generate_predefined_ucd_functions.cpp)
    83 target_link_libraries (generate_predefined_ucd_functions RegExpADT UCDlib PabloADT CCADT ${REQ_LLVM_LIBRARIES})
     90target_link_libraries (generate_predefined_ucd_functions RegExpADT UCDlib PabloADT CCADT)
    8491
    8592set(PRECOMPILED_PROPERTIES_OBJ ${PROJECT_BINARY_DIR}/precompiled_properties.o)
     
    8794
    8895if(ENABLE_MULTIPLEXING)
    89 set(MULTIPLEXING_FLAG -multiplexing)
     96set(MULTIPLEXING_FLAG -multiplexing -multiplexing-dist=${PROJECT_BINARY_DIR}/ucd-multiplexing.csv)
    9097endif()
    9198
     
    99106add_custom_target(run_generate_predefined_ucd_functions ALL DEPENDS ${PRECOMPILED_FILES})
    100107
     108add_dependencies(RegExpCompiler run_generate_predefined_ucd_functions)
     109ENDIF()
     110
    101111add_executable(icgrep icgrep.cpp do_grep.cpp compiler.cpp ${PRECOMPILED_FILES})
     112IF(NOT DISABLE_PREGENERATED_UCD_FUNCTIONS)
     113add_dependencies(icgrep run_generate_predefined_ucd_functions)
     114ENDIF()
    102115target_link_libraries (icgrep UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
    103 
    104 add_dependencies(icgrep run_generate_predefined_ucd_functions)
    105 add_dependencies(RegExpCompiler run_generate_predefined_ucd_functions)
    106116
    107117IF(Boost_FOUND)
     
    114124message(STATUS "Enabling Multiplexing")
    115125SET(CUDD_ROOT "${CMAKE_SOURCE_DIR}/../cudd-2.5.1")
    116 message(STATUS ${CUDD_ROOT})
    117126file(GLOB CUDD_SOURCES "${CUDD_ROOT}/cudd/*.c")
    118127file(GLOB EPD_SOURCES "${CUDD_ROOT}/epd/*.c")
Note: See TracChangeset for help on using the changeset viewer.