Browse Source

CMake: Document that the globs are expanded during CMake

This will avoid people from thinking that they have to do nothing
when they change the set of files.

Gbp-Dch: ignore
tags/debian/1.4_beta4
Julian Andres Klode 4 years ago
parent
commit
b59a8c6e29
5 changed files with 15 additions and 4 deletions
  1. +3
    -1
      apt-inst/CMakeLists.txt
  2. +3
    -1
      apt-pkg/CMakeLists.txt
  3. +3
    -1
      apt-private/CMakeLists.txt
  4. +3
    -1
      ftparchive/CMakeLists.txt
  5. +3
    -0
      test/libapt/CMakeLists.txt

+ 3
- 1
apt-inst/CMakeLists.txt View File

@@ -6,7 +6,9 @@ set(MAJOR 2.0)
set(MINOR 0)
set(APT_INST_MAJOR ${MAJOR} PARENT_SCOPE)

# Definition of the C++ files used to build the library
# Definition of the C++ files used to build the library - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove
# a file (you can just run cmake . in the build directory)
file(GLOB_RECURSE library "*.cc")
file(GLOB_RECURSE headers "*.h")



+ 3
- 1
apt-pkg/CMakeLists.txt View File

@@ -29,7 +29,9 @@ execute_process(COMMAND grep "^#define APT_PKG_RELEASE"
message(STATUS "Building libapt-pkg ${MAJOR} (release ${MINOR})")
set(APT_PKG_MAJOR ${MAJOR} PARENT_SCOPE) # exporting for methods/CMakeLists.txt

# Definition of the C++ files used to build the library
# Definition of the C++ files used to build the library - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove
# a file (you can just run cmake . in the build directory)
file(GLOB_RECURSE library "*.cc" "${CMAKE_CURRENT_BINARY_DIR}/tagfile-keys.cc")
file(GLOB_RECURSE headers "*.h")



+ 3
- 1
apt-private/CMakeLists.txt View File

@@ -2,7 +2,9 @@
set(MAJOR 0.0)
set(MINOR 0)

# Definition of the C++ files used to build the library
# Definition of the C++ files used to build the library - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove
# a file (you can just run cmake . in the build directory)
file(GLOB_RECURSE library "*.cc")
file(GLOB_RECURSE headers "*.h")



+ 3
- 1
ftparchive/CMakeLists.txt View File

@@ -1,5 +1,7 @@
include_directories(${BERKELEY_DB_INCLUDE_DIRS})
# Create the executable tasks
# Definition of the C++ files used to build the program - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove
# a file (you can just run cmake . in the build directory)
file(GLOB_RECURSE source "*.cc")
add_executable(apt-ftparchive ${source})



+ 3
- 0
test/libapt/CMakeLists.txt View File

@@ -22,6 +22,9 @@ if(NOT GTEST_FOUND AND EXISTS ${GTEST_ROOT})
endif()

if(GTEST_FOUND)
# Definition of the C++ files used to build the test binary - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove
# a file (you can just run cmake . in the build directory)
file(GLOB files gtest_runner.cc *-helpers.cc *_test.cc)
add_executable(libapt_test ${files})
target_include_directories(libapt_test PRIVATE ${GTEST_INCLUDE_DIRS})


Loading…
Cancel
Save