diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 02:24:55 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-20 02:24:55 (GMT) |
commit | c8d8e693cf24d657ced601c8173258f89b62e71a (patch) | |
tree | 2fcf0b3929d709ec76fced03145ce59897a8c04d /Tests/ComplexRelativePaths/Library/CMakeLists.txt | |
parent | 30b3cc0755b43bf3ad04cf2fa4d5af441cbadfd7 (diff) | |
download | CMake-c8d8e693cf24d657ced601c8173258f89b62e71a.zip CMake-c8d8e693cf24d657ced601c8173258f89b62e71a.tar.gz CMake-c8d8e693cf24d657ced601c8173258f89b62e71a.tar.bz2 |
Add documentation, comments. Move some 'Complex' sub-tests into 2 new 'Wrapping' and 'Testing' tests.
Diffstat (limited to 'Tests/ComplexRelativePaths/Library/CMakeLists.txt')
-rw-r--r-- | Tests/ComplexRelativePaths/Library/CMakeLists.txt | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/Tests/ComplexRelativePaths/Library/CMakeLists.txt b/Tests/ComplexRelativePaths/Library/CMakeLists.txt index 5d6c89f..1141555 100644 --- a/Tests/ComplexRelativePaths/Library/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/Library/CMakeLists.txt @@ -1,25 +1,30 @@ -AUX_SOURCE_DIRECTORY(ExtraSources LibrarySources) +# +# Small utility used to create file +# UTILITY_SOURCE is used for coverage and for getting the exact name +# of the executable. +# +UTILITY_SOURCE(CREATE_FILE_EXE create_file "." create_file.cxx) +ADD_EXECUTABLE(create_file create_file.cxx) +# +# Create static library # SOURCE_FILES_REMOVE is used for Coverage -SOURCE_FILES(LibrarySources file2 GENERATED nonexisting_file) -SOURCE_FILES_REMOVE(LibrarySources GENERATED nonexisting_file) +# +AUX_SOURCE_DIRECTORY(ExtraSources LibrarySources) +SOURCE_FILES(LibrarySources file2 create_file.cxx GENERATED nonexisting_file) +SOURCE_FILES_REMOVE(LibrarySources create_file.cxx GENERATED nonexisting_file) ADD_LIBRARY(CMakeTestLibrary LibrarySources) -SOURCE_FILES(SharedLibrarySources sharedFile) -ADD_LIBRARY(CMakeTestLibraryShared SHARED SharedLibrarySources) - # -# Small utility used to create file +# Create shared library # -UTILITY_SOURCE(CREATE_FILE_EXE create_file "." create_file.cxx) -ADD_EXECUTABLE(create_file create_file.cxx) +SOURCE_FILES(SharedLibrarySources sharedFile) +ADD_LIBRARY(CMakeTestLibraryShared SHARED SharedLibrarySources) # # Attach a post-build custom-command to the lib. -# It run ${CREATE_FILE_EXE} which will create the file -# ${Complex_BINARY_DIR}/Library/postbuild.txt. -# The 'complex' executable will then test if this file exists, -# and remove it. +# It runs ${CREATE_FILE_EXE} which will create a file. +# The 'complex' executable will then test if this file exists and remove it. # ADD_DEPENDENCIES(CMakeTestLibraryShared create_file) @@ -29,11 +34,10 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared TARGET CMakeTestLibraryShared) # -# Add custom target -# It run ${CREATE_FILE_EXE} which will create the file -# ${Complex_BINARY_DIR}/Library/custom_target1.txt. -# The 'complex' executable will then test if this file exists, -# and remove it. +# Add a custom target. +# It runs ${CREATE_FILE_EXE} which will create the file +# It runs ${CREATE_FILE_EXE} which will create a file. +# The 'complex' executable will then test if this file exists and remove it. # ADD_CUSTOM_TARGET(custom_target1 ALL @@ -42,6 +46,12 @@ ADD_CUSTOM_TARGET(custom_target1 ADD_DEPENDENCIES(custom_target1 create_file) -# More coverage +# +# Extra coverage +# +ABSTRACT_FILES( + ExtraSources/file1.cxx +) + +INSTALL_FILES(/tmp .h ${Complex_BINARY_DIR}/cmTestConfigure.h) -SOURCE_GROUP(A_GROUP ".cxx") |