Always set TEST_LIBS as applications/tools also need to link them, even if tests are disabled. Also allow disabling building of sg_pkgutil.
29 lines
474 B
CMake
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()
|