Includes: - fix int64x64 parsing order, remove cached entries in macros-and-definitions and in the docs - update launch.json scratch names - add a ctest entry per executable - forward POSIX signal in ns3 (to get segmentation fault) - prioritize Ninja generator instead of Makefiles - add tests for unused utils source files - remove dummy file and add tests to check for unused source files - add missing examples and clean up unnecessary definitions - missing feature entry for LTE used by pybindgen - refactor CMake related filenames - fix python libraries and include directories bindings - fix brite example name - Keep C++ compiler and flags when refreshing - Disable precompiled headers when Ccache is found - Mark find_external_library headers as advanced - consolidate auxiliary files: build-status.py, _cache.py and .lock-waf_sys.platform_build files are merged into .lock-ns3_sys.platform_build - scan .cc sources used in bindings and update docs
39 lines
1.4 KiB
CMake
39 lines
1.4 KiB
CMake
# Copyright (c) 2017-2021 Universidade de Brasília
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License version 2 as published by the Free
|
|
# Software Foundation;
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along with
|
|
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
# Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
# Author: Gabriel Ferreira <gabrielcarvfer@gmail.com>
|
|
|
|
macro(process_contribution contribution_list)
|
|
# Create handles to reference contrib libraries
|
|
foreach(libname ${contribution_list})
|
|
library_target_name(${libname} targetname)
|
|
set(lib${libname} ${targetname} CACHE INTERNAL "")
|
|
set(lib${libname}-obj ${targetname}-obj CACHE INTERNAL "")
|
|
endforeach()
|
|
|
|
# Add contribution folders to be built
|
|
foreach(contribname ${contribution_list})
|
|
set(folder "contrib/${contribname}")
|
|
if(EXISTS ${PROJECT_SOURCE_DIR}/${folder}/CMakeLists.txt)
|
|
message(STATUS "Processing ${folder}")
|
|
add_subdirectory(${folder})
|
|
else()
|
|
message(
|
|
STATUS "Skipping ${folder} : it does not contain a CMakeLists.txt file"
|
|
)
|
|
endif()
|
|
endforeach()
|
|
endmacro()
|