Merge pull request #1162 from mfleisz/cmthirdparty
cmake: Allow project-wide includes for third-party components
This commit is contained in:
commit
28547bece7
@ -421,6 +421,13 @@ endif()
|
||||
|
||||
# Sub-directories
|
||||
|
||||
if(WITH_THIRD_PARTY)
|
||||
add_subdirectory(third-party)
|
||||
if (NOT "${THIRD_PARTY_INCLUDES}" STREQUAL "")
|
||||
include_directories(${THIRD_PARTY_INCLUDES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_subdirectory(include)
|
||||
|
||||
add_subdirectory(libfreerdp)
|
||||
@ -441,10 +448,6 @@ if(WITH_SERVER)
|
||||
add_subdirectory(server)
|
||||
endif()
|
||||
|
||||
if(WITH_THIRD_PARTY)
|
||||
add_subdirectory(third-party)
|
||||
endif()
|
||||
|
||||
# Packaging
|
||||
|
||||
SET(CPACK_BINARY_ZIP "ON")
|
||||
|
1
third-party/CMakeLists.txt
vendored
1
third-party/CMakeLists.txt
vendored
@ -29,3 +29,4 @@ foreach(dir ${all_valid_subdirs})
|
||||
endif()
|
||||
endforeach(dir)
|
||||
|
||||
set(THIRD_PARTY_INCLUDES ${THIRD_PARTY_INCLUDES} PARENT_SCOPE)
|
Loading…
Reference in New Issue
Block a user