Blame server/proxy/modules/CMakeLists.txt

Packit Service 5a9772
# Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com>
Packit Service 5a9772
#
Packit Service 5a9772
# Licensed under the Apache License, Version 2.0 (the "License");
Packit Service 5a9772
# you may not use this file except in compliance with the License.
Packit Service 5a9772
# You may obtain a copy of the License at
Packit Service 5a9772
#
Packit Service 5a9772
#     http://www.apache.org/licenses/LICENSE-2.0
Packit Service 5a9772
#
Packit Service 5a9772
# Unless required by applicable law or agreed to in writing, software
Packit Service 5a9772
# distributed under the License is distributed on an "AS IS" BASIS,
Packit Service 5a9772
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service 5a9772
# See the License for the specific language governing permissions and
Packit Service 5a9772
# limitations under the License.
Packit Service 5a9772
Packit Service 5a9772
# The third-party directory is meant for third-party components to be built
Packit Service 5a9772
# as part of the main FreeRDP build system, making separate maintenance easier.
Packit Service 5a9772
# Subdirectories of the third-party directory are ignored by git, but are
Packit Service 5a9772
# automatically included by CMake when the -DWITH_THIRD_PARTY=on option is used.
Packit Service 5a9772
Packit Service 5a9772
# include proxy header files for proxy modules
Packit Service 5a9772
include_directories("${CMAKE_SOURCE_DIR}/server/proxy")
Packit Service 5a9772
include_directories("${CMAKE_SOURCE_DIR}/server/proxy/modules")
Packit Service 5a9772
Packit Service 5a9772
# taken from FreeRDP/third-party/CMakeLists.txt
Packit Service 5a9772
file(GLOB all_valid_subdirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/CMakeLists.txt")
Packit Service 5a9772
Packit Service 5a9772
foreach(dir ${all_valid_subdirs})
Packit Service 5a9772
	if(${dir} MATCHES "^([^/]*)/+CMakeLists.txt")
Packit Service 5a9772
		string(REGEX REPLACE "^([^/]*)/+CMakeLists.txt" "\\1" dir_trimmed ${dir})
Packit Service 5a9772
		message(STATUS "Adding proxy module ${dir_trimmed}")
Packit Service 5a9772
		add_subdirectory(${dir_trimmed})
Packit Service 5a9772
	endif()
Packit Service 5a9772
endforeach(dir)