2015-09-02 22:43:36 +02:00
|
|
|
set(Tox_INCLUDE_DIRS)
|
|
|
|
set(Tox_LIBRARIES)
|
|
|
|
|
2015-09-02 22:34:10 +02:00
|
|
|
find_path(Tox_CORE_INCLUDE_DIR tox/tox.h)
|
|
|
|
find_library(Tox_CORE_LIBRARY toxcore)
|
2015-01-30 14:54:25 +01:00
|
|
|
|
2015-09-02 22:34:10 +02:00
|
|
|
find_path(Tox_AV_INCLUDE_DIR tox/toxav.h)
|
|
|
|
find_library(Tox_AV_LIBRARY toxav)
|
|
|
|
|
2015-09-02 22:43:36 +02:00
|
|
|
find_path(Tox_ENCRYPTSAVE_INCLUDE_DIR tox/toxencryptsave.h)
|
|
|
|
find_library(Tox_ENCRYPTSAVE_LIBRARY toxencryptsave)
|
2015-09-02 22:34:10 +02:00
|
|
|
|
2015-09-02 22:43:36 +02:00
|
|
|
find_path(Tox_DNS_INCLUDE_DIR tox/toxdns.h)
|
|
|
|
find_library(Tox_DNS_LIBRARY toxdns)
|
2015-09-02 22:34:10 +02:00
|
|
|
|
2015-09-02 22:43:36 +02:00
|
|
|
if(Tox_CORE_INCLUDE_DIR AND Tox_CORE_LIBRARY)
|
|
|
|
set(Tox_CORE_FOUND TRUE)
|
2015-09-02 22:34:10 +02:00
|
|
|
list(APPEND Tox_INCLUDE_DIRS ${Tox_CORE_INCLUDE_DIR})
|
|
|
|
list(APPEND Tox_LIBRARIES ${Tox_CORE_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2015-09-02 22:43:36 +02:00
|
|
|
if(Tox_AV_INCLUDE_DIR AND Tox_AV_LIBRARY)
|
|
|
|
set(Tox_AV_FOUND TRUE)
|
2015-09-02 22:34:10 +02:00
|
|
|
list(APPEND Tox_INCLUDE_DIRS ${Tox_AV_INCLUDE_DIR})
|
|
|
|
list(APPEND Tox_LIBRARIES ${Tox_AV_LIBRARY})
|
|
|
|
endif()
|
2015-01-30 14:54:25 +01:00
|
|
|
|
2015-09-02 22:43:36 +02:00
|
|
|
if(Tox_ENCRYPTSAVE_INCLUDE_DIR AND Tox_ENCRYPTSAVE_LIBRARY)
|
|
|
|
set(Tox_ENCRYPTSAVE_FOUND TRUE)
|
|
|
|
list(APPEND Tox_INCLUDE_DIRS ${Tox_ENCRYPTSAVE_INCLUDE_DIR})
|
|
|
|
list(APPEND Tox_LIBRARIES ${Tox_ENCRYPTSAVE_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(Tox_DNS_INCLUDE_DIR AND Tox_DNS_LIBRARY)
|
|
|
|
set(Tox_DNS_FOUND TRUE)
|
|
|
|
list(APPEND Tox_INCLUDE_DIRS ${Tox_DNS_INCLUDE_DIR})
|
|
|
|
list(APPEND Tox_LIBRARIES ${Tox_DNS_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2015-01-30 14:54:25 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2015-09-02 22:34:10 +02:00
|
|
|
find_package_handle_standard_args(Tox HANDLE_COMPONENTS REQUIRED_VARS Tox_INCLUDE_DIRS Tox_LIBRARIES)
|