2014-02-16 04:39:41 -08:00
|
|
|
|
|
|
|
if(NOT TARGET polarssl)
|
|
|
|
message("including polarssl")
|
2014-07-06 08:27:50 -07:00
|
|
|
set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
|
|
|
|
set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
|
2014-04-27 12:25:03 -07:00
|
|
|
if (SELF_TEST)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
|
|
|
|
else()
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
|
|
|
|
endif()
|
2014-02-16 04:39:41 -08:00
|
|
|
endif()
|