if (DEFINED BASE_SOURCE_DIR)
    include_directories(
            ${BASE_SOURCE_DIR}/misc_lib
            ${BASE_SOURCE_DIR}/himath_lib
            ${BASE_SOURCE_DIR}/user_lib)
endif (DEFINED BASE_SOURCE_DIR)

set(SOURCE_FILES
        bulletin.cpp
        bulletin.hpp
        clouds.hpp
        message_parser.hpp
        metar_parser.cpp
        metar_parser.hpp
        metar_tokens.hpp
        report.cpp
        report.hpp
        station.cpp
        station.hpp
        str2val.hpp
        sws.hpp
        synop_parser.cpp
        synop_parser.hpp
        weather.hpp)

add_library(sws SHARED ${SOURCE_FILES})

add_executable(test_sws test_sws.cpp)

target_link_libraries(test_sws
        sws misc dsp antenna config exthdr dl himath user tirpc stdc++
        boost_unit_test_framework boost_regex boost_date_time m z)
