#
# This is CMakeLists for project: JtagLib
#
project(JtagLib)

# ${SRC} cmake file defines ${SOURCES} variable which holds all sources used during compilation
include_cmake(${SRC})

enable_all_warnings()
enable_warnings_as_errors()

# Add the given directories to those the compiler uses to search for include files.
# Relative paths are interpreted as relative to the current source directory.
include_directories(
        "./" # Force it to look in the current directory first (due to stdafx.h conflicts)
        "${OPENIPC_ROOT}/Source/Public_Include"
        "${OPENIPC_ROOT}/Source/Components/Probe/PluginSDK"
        "${OPENIPC_ROOT}/../IPC/Private/InternalUtils"
        )

# Adds a library target called <name> to be built from the source files listed in the command invocation.
# The <name> corresponds to the logical target name and must be globally unique within a project.
# The actual file name of the library built is constructed based on conventions of the native platform (such as lib<name>.a or <name>.lib).
add_library(JtagLib STATIC ${SOURCES} )

set_target_properties(JtagLib PROPERTIES
                      OUTPUT_NAME JtagLib_${ARCHITECTURE_NAME}
                      FOLDER "/Foundation")

# Link a target to given libraries.
target_link_libraries(JtagLib PRIVATE InternalUtils
                                                   BitData_Static)
