Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (2 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File:
1 edited

Legend:

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

    r5252 r5260  
    6060ENDIF()
    6161
    62 
    6362add_library(CodeGen ${KERNEL_SRC} ${IDISA_SRC} object_cache.cpp)
    6463add_library(PabloADT ${PABLO_SRC})
     
    6867add_library(UCDlib UCD/unicode_set.cpp UCD/ucd_compiler.cpp UCD/PropertyObjects.cpp UCD/resolve_properties.cpp UCD/UnicodeNameData.cpp)
    6968
    70 
    7169# add the executable
    7270target_link_libraries (PabloADT CodeGen ${REQ_LLVM_LIBRARIES})
     
    8280add_executable(editd editd/editd.cpp editd/pattern_compiler.cpp toolchain.cpp editd/editdscan_kernel.cpp editd/editd_gpu_kernel.cpp editd/editd_cpu_kernel.cpp)
    8381add_executable(array-test array-test.cpp toolchain.cpp)
     82
     83## IWYU detects superfluous includes and when the include can be replaced with a forward declaration.
     84## It can be obtained using "apt-get install iwyu" or from "github.com/include-what-you-use".
     85
     86#find_program(IWYU_PATH NAMES include-what-you-use iwyu)
     87#if(IWYU_PATH)
     88#cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
     89#execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-libgcc-file-name OUTPUT_VARIABLE LIBGCC_FILE)
     90#get_filename_component(LIBGCC_PATH ${LIBGCC_FILE} DIRECTORY)
     91#include_directories("${LIBGCC_PATH}/include")
     92#set_property(TARGET CodeGen PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     93#set_property(TARGET PabloADT PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     94#set_property(TARGET RegExpADT PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     95#set_property(TARGET RegExpCompiler PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     96#set_property(TARGET CCADT PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     97#set_property(TARGET UCDlib PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     98#set_property(TARGET icgrep PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     99#set_property(TARGET u8u16 PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     100#set_property(TARGET wc PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     101#set_property(TARGET editd PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     102#set_property(TARGET array-test PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
     103#endif()
    84104
    85105IF (PRINT_TIMING_INFORMATION)
Note: See TracChangeset for help on using the changeset viewer.