option(WITH_MIL "Enable Multiple Instance Learning (MIL) Tracker" ON)
if(WITH_MIL)
	set(THIRD_PARTY_LIBS ${THIRD_PARTY_LIBS} mil)
	set(THIRD_PARTY_TRACKERS ${THIRD_PARTY_TRACKERS} MIL/src/MIL)
	set(THIRD_PARTY_INCLUDE_DIRS ${THIRD_PARTY_INCLUDE_DIRS} MIL/include)
	add_subdirectory(${CMAKE_CURRENT_LIST_DIR})
else(WITH_MIL)		
	set(THIRD_PARTY_DEFINITIONS ${THIRD_PARTY_DEFINITIONS} DISABLE_MIL)
	message(STATUS "MIL disabled")
endif(WITH_MIL)