INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${parity_BINARY_DIR}/parity.binary)
INCLUDE_DIRECTORIES(${parity_SOURCE_DIR}/parity.binary)
INCLUDE_DIRECTORIES(${parity_BINARY_DIR}/parity.options)
INCLUDE_DIRECTORIES(${parity_SOURCE_DIR}/parity.options)
INCLUDE_DIRECTORIES(${parity_BINARY_DIR}/parity.utils)
INCLUDE_DIRECTORIES(${parity_SOURCE_DIR}/parity.utils)
ADD_EXECUTABLE(
    parity.inspector
    Options.h
    Inspector.cpp
    Options.cpp
    Inspector.h
)
TARGET_LINK_LIBRARIES(
    parity.inspector
    parity_parity.binary
    parity_parity.options
    parity_parity.utils
)
# node-specific target for this directory
ADD_CUSTOM_TARGET(
    confix-node-specific-target--parity.inspector
)
# edge from my node's node-specific target to
# all toplevel targets of this directory
ADD_DEPENDENCIES(
    confix-node-specific-target--parity.inspector
    parity.inspector
)
# edges from this directory's node-specific target
# to all successors' node-specific targets
ADD_DEPENDENCIES(
    confix-node-specific-target--parity.inspector
    confix-node-specific-target--parity.binary confix-node-specific-target--parity.options confix-node-specific-target--parity.utils
)
# edges from top-level target parity.inspector to
# all successors' node-specific targets
ADD_DEPENDENCIES(
    parity.inspector
    confix-node-specific-target--parity.binary confix-node-specific-target--parity.options confix-node-specific-target--parity.utils
)
INSTALL(
    FILES Inspector.h
    DESTINATION include
)
INSTALL(
    FILES Options.h
    DESTINATION include
)
INSTALL(
    TARGETS parity.inspector
    DESTINATION bin
)
