summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indi/fli/CMakeLists.txt
blob: 235137a98205be06e2c2215d5ae52c6728394139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


##### fli_common (static)

tde_add_library( fli_common STATIC_PIC

  SOURCES
        libfli.c
        libfli-camera.c
        libfli-camera-parport.c
        libfli-camera-usb.c
        libfli-filter-focuser.c
        libfli-mem.c
        libfli-serial.c
        libfli-sys.c
        libfli-usb.c
        libfli-debug.c
)


##### $(libfli_linux) (static)

if( OS_Linux )

tde_add_library( fli_linux STATIC_PIC

  SOURCES
        libfli-parport.c
        libfli-usb-sys-linux.c 
)

endif()


##### fli_bsd (static)

if( OS_BSD )

tde_add_library( fli_bsd STATIC_PIC

  SOURCES
        libfli-usb-sys-bsd.c 
)

endif()


##### fli_null (static)

if( OS_UNKNOWN )

tde_add_library( fli_null STATIC_PIC

  SOURCES
        libfli-usb-sys-null.c 
)

endif()