-
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #818 from tytan652/no_more_mandatory_submodules
Allow using system lib for all submodules
- Loading branch information
Showing
11 changed files
with
156 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#[=======================================================================[.rst | ||
FindUsrsctp | ||
---------- | ||
FindModule for Usrsctp library | ||
Imported Targets | ||
^^^^^^^^^^^^^^^^ | ||
This module defines the :prop_tgt:`IMPORTED` target ``Usrsctp::Usrsctp``. | ||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
This module sets the following variables: | ||
``Usrsctp_FOUND`` | ||
True, if the library was found. | ||
#]=======================================================================] | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path( | ||
Usrsctp_INCLUDE_DIR | ||
NAMES usrsctp.h | ||
PATHS /usr/include /usr/local/include) | ||
|
||
find_library( | ||
Usrsctp_LIBRARY | ||
NAMES usrsctp libusrsctp | ||
PATHS /usr/lib /usr/local/lib) | ||
|
||
find_package_handle_standard_args( | ||
Usrsctp | ||
REQUIRED_VARS Usrsctp_LIBRARY Usrsctp_INCLUDE_DIR) | ||
mark_as_advanced(Usrsctp_INCLUDE_DIR Usrsctp_LIBRARY) | ||
|
||
if(Usrsctp_FOUND) | ||
if(NOT TARGET Usrsctp::Usrsctp) | ||
if(IS_ABSOLUTE "${Usrsctp_LIBRARY}") | ||
add_library(Usrsctp::Usrsctp UNKNOWN IMPORTED) | ||
set_property(TARGET Usrsctp::Usrsctp PROPERTY IMPORTED_LOCATION "${Usrsctp_LIBRARY}") | ||
else() | ||
add_library(Usrsctp::Usrsctp INTERFACE IMPORTED) | ||
set_property(TARGET Usrsctp::Usrsctp PROPERTY IMPORTED_LIBNAME "${Usrsctp_LIBRARY}") | ||
endif() | ||
|
||
set_target_properties(Usrsctp::Usrsctp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Usrsctp_INCLUDE_DIR}") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#[=======================================================================[.rst | ||
Findplog | ||
---------- | ||
FindModule for Plog library | ||
Imported Targets | ||
^^^^^^^^^^^^^^^^ | ||
This module defines the :prop_tgt:`IMPORTED` target ``plog::plog``. | ||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
This module sets the following variables: | ||
``plog_FOUND`` | ||
True, if the library was found. | ||
Cache variables | ||
^^^^^^^^^^^^^^^ | ||
The following cache variables may also be set: | ||
``plog_INCLUDE_DIR`` | ||
Directory containing ``plog/Log.h``. | ||
#]=======================================================================] | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path( | ||
plog_INCLUDE_DIR | ||
NAMES plog/Log.h | ||
PATHS /usr/include /usr/local/include) | ||
|
||
find_package_handle_standard_args( | ||
plog | ||
REQUIRED_VARS plog_INCLUDE_DIR) | ||
mark_as_advanced(plog_INCLUDE_DIR) | ||
|
||
if(plog_FOUND) | ||
if(NOT TARGET plog::plog) | ||
add_library(plog::plog INTERFACE IMPORTED) | ||
set_target_properties(plog::plog PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${plog_INCLUDE_DIR}") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters