set(LIGHT_LIGHTNESS_SOURCE_FILES
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_client.c"
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_setup_server.c"
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_mc.c")

set(LIGHT_LIGHTNESS_CLIENT_SOURCE_FILES
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_client.c"
    "${MODEL_COMMON_SOURCE_FILES}" CACHE INTERNAL "")

set(LIGHT_LIGHTNESS_CLIENT_INCLUDE_DIRS
    "${CMAKE_CURRENT_SOURCE_DIR}/include"
    "${MODEL_COMMON_INCLUDE_DIRS}" CACHE INTERNAL "")

set(LIGHT_LIGHTNESS_SETUP_SERVER_SOURCE_FILES
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_setup_server.c"
    "${CMAKE_CURRENT_SOURCE_DIR}/src/light_lightness_mc.c"
    "${MODEL_COMMON_SOURCE_FILES}" CACHE INTERNAL "")

set(LIGHT_LIGHTNESS_SETUP_SERVER_INCLUDE_DIRS
    "${CMAKE_CURRENT_SOURCE_DIR}/include"
    "${MODEL_COMMON_INCLUDE_DIRS}" CACHE INTERNAL "")

set(target_include_dirs
    ${LIGHT_LIGHTNESS_CLIENT_INCLUDE_DIRS}
    ${LIGHT_LIGHTNESS_SETUP_SERVER_INCLUDE_DIRS}
    ${GENERIC_PONOFF_SERVER_INCLUDE_DIRS}
    ${GENERIC_LEVEL_SERVER_INCLUDE_DIRS}
    ${SCENE_SETUP_SERVER_INCLUDE_DIRS}
    ${ACCESS_INCLUDE_DIRS}
    ${MESH_INCLUDE_DIRS}
    ${${SOFTDEVICE}_INCLUDE_DIRS}
    ${${PLATFORM}_INCLUDE_DIRS}
    ${${nRF5_SDK_VERSION}_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}/examples/templates)

add_pc_lint(light_lightness_${PLATFORM}
    "${LIGHT_LIGHTNESS_SOURCE_FILES}"
    "${target_include_dirs};${CMAKE_SOURCE_DIR}/mesh/test/include"
    "${${PLATFORM}_DEFINES};${${SOFTDEVICE}_DEFINES};-DLIGHT_LIGHTNESS_SETUP_SERVER_INSTANCES_MAX=1;-DSCENE_SETUP_SERVER_INSTANCES_MAX=0")
add_pc_lint(light_lightness_with_scene_${PLATFORM}
    "${LIGHT_LIGHTNESS_SOURCE_FILES}"
    "${target_include_dirs};${CMAKE_SOURCE_DIR}/mesh/test/include"
    "${${PLATFORM}_DEFINES};${${SOFTDEVICE}_DEFINES};-DLIGHT_LIGHTNESS_SETUP_SERVER_INSTANCES_MAX=1;-DSCENE_SETUP_SERVER_INSTANCES_MAX=1")
