if (DEFINED BASE_SOURCE_DIR)
    include_directories(
            ${BASE_SOURCE_DIR}/user_lib
            ${BASE_SOURCE_DIR}/antenna_lib
            ${BASE_SOURCE_DIR}/dsp_lib
            ${BASE_SOURCE_DIR}/highmath_lib)
endif (DEFINED BASE_SOURCE_DIR)

#enable_nls()

include_directories(
        ${CMAKE_CURRENT_SOURCE_DIR}/../../softplane
        ${CMAKE_CURRENT_SOURCE_DIR}/../open)

# The build_date.c is generated during the build and belongs to the
# "build" dirctory, along with outher artifacts.
add_custom_command(
        OUTPUT build_date.c
        COMMAND echo \"const char *rcp8SiteDate_c = \\"`date`\\" \;\" >
        ${CMAKE_CURRENT_BINARY_DIR}/build_date.c
)

set(SOURCE_FILES
        dau_hooks.c
        dcu_hooks.c
        rcp8_site.c
        ${CMAKE_CURRENT_BINARY_DIR}/build_date.c)

add_library(rcp8_site ${SOURCE_FILES})
