diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
commit | 77c4d6e67debf0e729734d882df033c4c0f5b0c3 (patch) | |
tree | 4a59e86332d6cc78fc5c97110ecba281b0f67bc9 /CMakeLists.txt | |
parent | 0002c0cc260a6a8e2b6c53f19ae99a625eca4355 (diff) | |
download | pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.gz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.bz2 pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.xz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.zip |
Big redign of model structures
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a761acb..6eb4c26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,23 +12,21 @@ find_package(PkgConfig REQUIRED) find_package(Threads REQUIRED) #Check in sibling directory -pkg_check_modules(UFODECODE ufodecode>=0.2 REQUIRED) - if (NOT DISABLE_PCITOOL) pkg_check_modules(FASTWRITER fastwriter REQUIRED) endif (NOT DISABLE_PCITOOL) -set(HEADERS pcilib.h pci.h register.h kmem.h irq.h dma.h event.h default.h tools.h error.h) -add_definitions("-fPIC --std=c99 -Wall -O2") -#add_definitions("-fPIC --std=c99 -Wall -O2 -pthread") +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) +add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3") +#add_definitions("-fPIC --std=c99 -Wall -O2") add_subdirectory(dma) -add_subdirectory(ipecamera) -add_subdirectory(kapture) +add_subdirectory(protocols) add_subdirectory(pcitool) add_subdirectory(apps) include_directories( + . ${FASTWRITER_INCLUDE_DIRS} ) @@ -37,15 +35,13 @@ link_directories( ${UFODECODE_LIBRARY_DIRS} ) -add_library(pcilib SHARED pci.c register.c kmem.c irq.c dma.c event.c default.c tools.c error.c) -target_link_libraries(pcilib dma ipecamera kapture ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} ) -add_dependencies(pcilib dma ipecamera) +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) +target_link_libraries(pcilib dma protocols ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} ) +add_dependencies(pcilib dma protocols pcitool) set_target_properties(pcilib PROPERTIES VERSION ${PCILIB_VERSION} SOVERSION ${PCILIB_ABI_VERSION} -# LINK_FLAGS "-pthread" -# LINK_FLAGS "-pthread -Wl,--whole-archive,dma/libdma.a,ipecamera/libipecamera.a,--no-whole-archive" ) if (NOT DISABLE_PCITOOL) @@ -79,3 +75,7 @@ endif (NOT DISABLE_PCITOOL) install(FILES pcilib.h DESTINATION include ) + +install(FILES bank.h register.h dma.h event.h model.h error.h tools.h + DESTINATION include/pcilib +) |