
include (SimGearComponent)

set(HEADERS 
    Catalog.hxx
    Package.hxx
    Install.hxx
    Root.hxx
    Delegate.hxx
    )

set(SOURCES 
    Catalog.cxx
    Package.cxx
    Install.cxx
    Root.cxx
# internal helpers
    md5.c md5.h
    ioapi.c ioapi_mem.c ioapi.h
    unzip.h unzip.c
    )

simgear_component(package package "${SOURCES}" "${HEADERS}")

if (SIMGEAR_SHARED)
    set(APP_LIBS SimGearCore)
else()
    set(APP_LIBS
        SimGearCore
        ${CMAKE_THREAD_LIBS_INIT}
        ${WINSOCK_LIBRARY}
        ${ZLIB_LIBRARY}
        ${RT_LIBRARY}
    )
endif()

add_executable(sg_pkgutil pkgutil.cxx)
target_link_libraries(sg_pkgutil ${APP_LIBS})

if(ENABLE_TESTS)


endif(ENABLE_TESTS)


include (SimGearComponent)

set(HEADERS 
    Catalog.hxx
    Package.hxx
    Install.hxx
    Root.hxx
    Delegate.hxx
    )

set(SOURCES 
    Catalog.cxx
    Package.cxx
    Install.cxx
    Root.cxx
# internal helpers
    md5.c md5.h
    ioapi.c ioapi_mem.c ioapi.h
    unzip.h unzip.c
    )

simgear_component(package package "${SOURCES}" "${HEADERS}")

add_executable(sg_pkgutil pkgutil.cxx)
target_link_libraries(sg_pkgutil ${TEST_LIBS})

if(ENABLE_TESTS)


endif(ENABLE_TESTS)

Use TEST_LIBS to include all libraries needed (on Mac)
Use TEST_LIBS to include all libraries needed (on Mac)
