Files
simgear/simgear/package/CMakeLists.txt
T
Thomas Geymayer 86e2de8d10 Fix #1139
Always set TEST_LIBS as applications/tools also need to link
them, even if tests are disabled. Also allow disabling building
of sg_pkgutil.
2013-06-12 23:56:04 +02:00

29 lines
474 B
CMake

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(ENABLE_PKGUTIL)
add_executable(sg_pkgutil pkgutil.cxx)
target_link_libraries(sg_pkgutil ${TEST_LIBS})
endif()