mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Add exclusions file that controls published sources
Add lines to the sources.exclude file to select paths and wildcards that will be excluded from source tarballs. See the tar --exclude-from=FILE option for syntax. If a source directory that is used to build targets is included then those targets should be defined in a CMakeLists.txt file in the same directory and the following syntax should be used in the parent CMakeLists.txt script to ensue the parent CMakeLists.txt file remains valid when the excluded directory is not present: if (EXITS ${CMAKE_SOURCE_DIR}/optional-source-dir AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/optional-source-dir) add_subdirectory (optional-source-dir) endif ()
This commit is contained in:
parent
1bb56dcdc4
commit
4f4a2ce44c
@ -887,7 +887,9 @@ endif (WIN32)
|
||||
#
|
||||
# sub-directories
|
||||
#
|
||||
add_subdirectory (samples)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/samples AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/samples)
|
||||
add_subdirectory (samples)
|
||||
endif ()
|
||||
if (WSJT_GENERATE_DOCS)
|
||||
add_subdirectory (doc)
|
||||
endif (WSJT_GENERATE_DOCS)
|
||||
|
3
sources.exclude
Normal file
3
sources.exclude
Normal file
@ -0,0 +1,3 @@
|
||||
.git
|
||||
sources.exclude
|
||||
samples
|
Loading…
Reference in New Issue
Block a user