# vxl/config/cmake/config/vxl_shared_link_test/CMakeLists.txt
#
IF(POLICY CMP0025)
  CMAKE_POLICY(SET CMP0025 NEW)
ENDIF()
IF(POLICY CMP0042)
  CMAKE_POLICY(SET CMP0042 NEW)
ENDIF()
PROJECT(vxl_pic_compatible)

ADD_LIBRARY(cmTryCompileStaticLib STATIC static_src.cxx)
ADD_LIBRARY(cmTryCompileSharedLib SHARED shared_src.cxx)
TARGET_LINK_LIBRARIES(cmTryCompileSharedLib cmTryCompileStaticLib ${LINK_LIBRARIES})

# vxl/config/cmake/config/vxl_shared_link_test/CMakeLists.txt
#
cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
IF(POLICY CMP0025)
  CMAKE_POLICY(SET CMP0025 NEW)
ENDIF()
IF(POLICY CMP0042)
  CMAKE_POLICY(SET CMP0042 NEW)
ENDIF()
PROJECT(vxl_pic_compatible)

ADD_LIBRARY(cmTryCompileStaticLib STATIC static_src.cxx)
ADD_LIBRARY(cmTryCompileSharedLib SHARED shared_src.cxx)
TARGET_LINK_LIBRARIES(cmTryCompileSharedLib cmTryCompileStaticLib ${LINK_LIBRARIES})

Add missing call to cmake_minimum_required
COMP: Add missing call to cmake_minimum_required

The VXL_PIC_COMPATIBLE check CMakeLists.txt file recently started using
the cmake_policy() command.  This command is advanced enough to trigger
the CMP0000 requirement for cmake_minimum_required to be called.  Add
the missing call.

Change-Id: Ibfe630677604885c45ce61260ea30ed128e2c30c
