]> git.mxchange.org Git - simgear.git/blob - simgear/package/CMakeLists.txt
Avoid duplicate refresh of Catalogs
[simgear.git] / simgear / package / CMakeLists.txt
1
2 include (SimGearComponent)
3
4 set(HEADERS 
5     Catalog.hxx
6     Package.hxx
7     Install.hxx
8     Root.hxx
9     Delegate.hxx
10     )
11
12 set(SOURCES 
13     Catalog.cxx
14     Package.cxx
15     Install.cxx
16     Root.cxx
17 # internal helpers
18     md5.h md5.c
19     ioapi.c ioapi_mem.c ioapi.h
20     unzip.h unzip.c
21     )
22
23 simgear_component(package package "${SOURCES}" "${HEADERS}")
24
25 if(ENABLE_PKGUTIL)
26   add_executable(sg_pkgutil pkgutil.cxx)
27   target_link_libraries(sg_pkgutil ${TEST_LIBS})
28 endif()
29
30 if(ENABLE_TESTS)
31
32 add_executable(catalog_test CatalogTest.cxx)
33 target_link_libraries(catalog_test ${TEST_LIBS})
34
35 set_target_properties(catalog_test PROPERTIES
36         COMPILE_DEFINITIONS "SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"" )
37         
38 add_test(catalog_test ${EXECUTABLE_OUTPUT_PATH}/catalog_test)
39
40 endif(ENABLE_TESTS)