INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${parity_BINARY_DIR}/parity.tasks)
INCLUDE_DIRECTORIES(${parity_SOURCE_DIR}/parity.tasks)
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.test
    parity.utils.threading.cpp
    parity.utils.task.cpp
    parity.utils.exception.cpp
    parity.loader.runpaths.cpp
    parity.runtime.core.cpp
    parity.loader.preload.cpp
    parity.exe.static.import.cpp
    helper.cpp
    parity.runtime.dlfcn.cpp
    parity.utils.memoryfile.cpp
    parity.exe.no.loader.cpp
    main.cpp
    TestSuite.h
    parity.utils.path.cpp
    parity.exe.link.cpp
    parity.inspector.exe.cpp
    parity.options.commandline.cpp
    parity.runtime.stack.cpp
    parity.utils.environment.cpp
    parity.exe.compile.cpp
    parity.tasks.gatherer.debug.switch.cpp
    parity.exe.statistics.cpp
    parity.utils.mappedfile.cpp
    parity.binary.object.write.cpp
    parity.runtime.symbol.cpp
    parity.binary.image.write.cpp
    parity.exe.shared.cpp
    parity.utils.config.cpp
    parity.exe.auto.export.cpp
    parity.binary.object.cpp
)
TARGET_LINK_LIBRARIES(
    parity.test
    parity_parity.tasks
    parity_parity.binary
    parity_parity.options
    parity_parity.utils
)
# node-specific target for this directory
ADD_CUSTOM_TARGET(
    confix-node-specific-target--parity.test
)
# edge from my node's node-specific target to
# all toplevel targets of this directory
ADD_DEPENDENCIES(
    confix-node-specific-target--parity.test
    parity.test
)
# edges from this directory's node-specific target
# to all successors' node-specific targets
ADD_DEPENDENCIES(
    confix-node-specific-target--parity.test
    confix-node-specific-target--parity.binary confix-node-specific-target--parity.tasks confix-node-specific-target--parity.options confix-node-specific-target--parity.utils
)
# edges from top-level target parity.test to
# all successors' node-specific targets
ADD_DEPENDENCIES(
    parity.test
    confix-node-specific-target--parity.binary confix-node-specific-target--parity.tasks confix-node-specific-target--parity.options confix-node-specific-target--parity.utils
)
INSTALL(
    FILES TestSuite.h
    DESTINATION include
)
INSTALL(
    TARGETS parity.test
    DESTINATION bin
)
