diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 54a7120..cb3be58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,14 +26,22 @@ add_subdirectory(dma) add_subdirectory(ipecamera) add_subdirectory(pcitool) +include_directories( + ${FASTWRITER_INCLUDE_DIRS} +) + +link_directories( + ${FASTWRITER_LIBRARY_DIRS} + ${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 ufodecode dma ipecamera) +target_link_libraries(pcilib dma ipecamera ${CMAKE_THREAD_LIBS_INIT} ${UFODECODE_LIBRARIES} ) add_dependencies(pcilib dma ipecamera) set_target_properties(pcilib PROPERTIES VERSION ${PCILIB_VERSION} SOVERSION ${PCILIB_ABI_VERSION} - LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT} # LINK_FLAGS "-pthread" # LINK_FLAGS "-pthread -Wl,--whole-archive,dma/libdma.a,ipecamera/libipecamera.a,--no-whole-archive" ) @@ -41,7 +49,7 @@ set_target_properties(pcilib PROPERTIES if (NOT DISABLE_PCITOOL) add_executable(pci cli.c) add_dependencies(pci pcitool) - target_link_libraries(pci pcilib pcitool fastwriter) + target_link_libraries(pci pcilib pcitool ${FASTWRITER_LIBRARIES}) set_target_properties(pci PROPERTIES LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT} ) @@ -51,7 +59,6 @@ endif (NOT DISABLE_PCITOOL) # LINK_FLAGS "-Wl,pcitool/libpcitool.a" #) - if(NOT DEFINED BIN_INSTALL_DIR) set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") endif(NOT DEFINED BIN_INSTALL_DIR) |