CMakeLists.txt 473 B

123456789101112
  1. include_directories(${BERKELEY_DB_INCLUDE_DIRS})
  2. # Create the executable tasks
  3. file(GLOB_RECURSE source "*.cc")
  4. add_executable(apt-ftparchive ${source})
  5. # Link the executables against the libraries
  6. target_include_directories(apt-ftparchive PRIVATE ${BERKELEY_DB_INCLUDE_DIRS})
  7. target_link_libraries(apt-ftparchive apt-inst apt-pkg apt-private ${BERKELEY_DB_LIBRARIES})
  8. # Install the executables
  9. install(TARGETS apt-ftparchive RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})