cmake_minimum_required (VERSION 3.6)

project(Diligent-LinuxPlatform CXX)

set(INTERFACE 
    interface/LinuxDebug.h
    interface/LinuxFileSystem.h
    interface/LinuxPlatformDefinitions.h
    interface/LinuxPlatformMisc.h
)

set(SOURCE 
    src/LinuxDebug.cpp
    src/LinuxFileSystem.cpp
)

add_library(Diligent-LinuxPlatform ${SOURCE} ${INTERFACE} ${PLATFORM_INTERFACE_HEADERS})
set_common_target_properties(Diligent-LinuxPlatform)

target_include_directories(Diligent-LinuxPlatform 
PUBLIC
    interface
)

target_link_libraries(Diligent-LinuxPlatform 
PUBLIC
    Diligent-BuildSettings 
    Diligent-BasicPlatform
    Diligent-PlatformInterface
)

source_group("src" FILES ${SOURCE})
source_group("include" FILES ${INCLUDE})
source_group("interface" FILES ${PLATFORM_INTERFACE_HEADERS})

set_target_properties(Diligent-LinuxPlatform PROPERTIES
    FOLDER DiligentCore/Platforms
)

if(DILIGENT_INSTALL_CORE)
    install_core_lib(Diligent-LinuxPlatform)
endif()
