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

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

enable_all_warnings()
enable_warnings_as_errors()

# 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(InternalUtils STATIC ${SOURCES})

target_include_directories(InternalUtils
    PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)

set_target_properties(InternalUtils PROPERTIES
                      OUTPUT_NAME InternalUtils_${ARCHITECTURE_NAME}
                      FOLDER "/Framework/IPC/Shared with DAL")

if(WIN32)
	target_compile_options(InternalUtils PUBLIC /EHsc)
endif()

target_link_libraries(InternalUtils PRIVATE ${CMAKE_DL_LIBS})
