/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
find_package(Threads REQUIRED)
13
13
 
14
14
#Check in sibling directory
15
 
pkg_check_modules(UFODECODE ufodecode>=0.2 REQUIRED)
16
 
 
17
15
if (NOT DISABLE_PCITOOL)
18
16
    pkg_check_modules(FASTWRITER fastwriter REQUIRED)
19
17
endif (NOT DISABLE_PCITOOL)
20
18
 
21
 
set(HEADERS pcilib.h pci.h register.h kmem.h irq.h dma.h event.h default.h tools.h error.h)
22
 
add_definitions("-fPIC --std=c99 -Wall -O2")
23
 
#add_definitions("-fPIC --std=c99 -Wall -O2 -pthread")
 
19
set(HEADERS pcilib.h pci.h config.h model.h bank.h register.h kmem.h irq.h dma.h event.h tools.h error.h)
 
20
add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3")
 
21
#add_definitions("-fPIC --std=c99 -Wall -O2")
24
22
 
25
23
add_subdirectory(dma)
26
 
add_subdirectory(ipecamera)
27
 
add_subdirectory(kapture)
 
24
add_subdirectory(protocols)
28
25
add_subdirectory(pcitool)
29
26
add_subdirectory(apps)
30
27
 
31
28
include_directories(
 
29
    .
32
30
    ${FASTWRITER_INCLUDE_DIRS}
33
31
)
34
32
 
37
35
    ${UFODECODE_LIBRARY_DIRS}
38
36
)
39
37
 
40
 
add_library(pcilib SHARED pci.c register.c kmem.c irq.c dma.c event.c default.c tools.c error.c) 
41
 
target_link_libraries(pcilib dma ipecamera kapture ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} )
42
 
add_dependencies(pcilib dma ipecamera)
 
38
add_library(pcilib SHARED pci.c config.c model.c bank.c register.c kmem.c irq.c dma.c event.c tools.c error.c) 
 
39
target_link_libraries(pcilib dma protocols ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} )
 
40
add_dependencies(pcilib dma protocols pcitool)
43
41
 
44
42
set_target_properties(pcilib PROPERTIES
45
43
    VERSION ${PCILIB_VERSION}
46
44
    SOVERSION ${PCILIB_ABI_VERSION}
47
 
#    LINK_FLAGS "-pthread"
48
 
#    LINK_FLAGS "-pthread -Wl,--whole-archive,dma/libdma.a,ipecamera/libipecamera.a,--no-whole-archive"
49
45
)
50
46
 
51
47
if (NOT DISABLE_PCITOOL)
79
75
install(FILES pcilib.h
80
76
    DESTINATION include
81
77
)
 
78
 
 
79
install(FILES bank.h register.h dma.h event.h model.h error.h tools.h
 
80
    DESTINATION include/pcilib
 
81
)