Files
simgear/simgear/package/CMakeLists.txt
T
James Turner 224b557573 Packages: support a type enum
Work towards other package types, conceptually. (Not actually
implemented yet)
2021-03-21 13:26:04 +00:00

38 lines
670 B
CMake

include (SimGearComponent)
set(HEADERS
Catalog.hxx
Package.hxx
Install.hxx
Root.hxx
Delegate.hxx
PackageCommon.hxx
)
set(SOURCES
Catalog.cxx
Package.cxx
Install.cxx
Root.cxx
Delegate.cxx
# internal helpers
md5.h md5.c
ioapi.c ioapi_mem.c ioapi.h
unzip.h unzip.c
)
simgear_component(package package "${SOURCES}" "${HEADERS}")
if(ENABLE_PKGUTIL)
add_simgear_test(sg_pkgutil pkgutil.cxx)
endif()
if(ENABLE_TESTS)
add_simgear_autotest(catalog_test CatalogTest.cxx)
set_target_properties(catalog_test PROPERTIES
COMPILE_DEFINITIONS "SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"" )
endif(ENABLE_TESTS)