]> git.mxchange.org Git - simgear.git/blob - simgear/package/CMakeLists.txt
Updated package-management code.
[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.c md5.h
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 (SIMGEAR_SHARED)
26     set(APP_LIBS SimGearCore)
27 else()
28     set(APP_LIBS
29         SimGearCore
30         ${CMAKE_THREAD_LIBS_INIT}
31         ${WINSOCK_LIBRARY}
32         ${ZLIB_LIBRARY}
33         ${RT_LIBRARY}
34     )
35 endif()
36
37 add_executable(sg_pkgutil pkgutil.cxx)
38 target_link_libraries(sg_pkgutil ${APP_LIBS})
39
40 if(ENABLE_TESTS)
41
42
43 endif(ENABLE_TESTS)